no.sesat.search.view.velocity
Class URLVelocityTemplateLoader

java.lang.Object
  extended by org.apache.velocity.runtime.resource.loader.ResourceLoader
      extended by no.sesat.search.view.velocity.URLResourceLoader
          extended by no.sesat.search.view.velocity.URLVelocityTemplateLoader

public class URLVelocityTemplateLoader
extends URLResourceLoader

Load templates and adds debuginformation if VELOCITY_DEBUG is set to true.

See Also:
URLResourceLoader

Nested Class Summary
 
Nested classes/interfaces inherited from class no.sesat.search.view.velocity.URLResourceLoader
URLResourceLoader.Context
 
Field Summary
 
Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
className, isCachingOn, log, modificationCheckInterval, rsvc
 
Constructor Summary
URLVelocityTemplateLoader()
           
 
Method Summary
 InputStream getResourceStream(String url)
          getResourceStream() loads resource from url.
 
Methods inherited from class no.sesat.search.view.velocity.URLResourceLoader
getLastModified, init, isSourceModified
 
Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader
commonInit, getClassName, getModificationCheckInterval, isCachingOn, setCachingOn, setModificationCheckInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLVelocityTemplateLoader

public URLVelocityTemplateLoader()
Method Detail

getResourceStream

public InputStream getResourceStream(String url)
                              throws org.apache.velocity.exception.ResourceNotFoundException
getResourceStream() loads resource from url. Then add border around the template so its easy to see wich templates are loaded.

Overrides:
getResourceStream in class URLResourceLoader
Parameters:
url - url of template to fetch bytestream of
Returns:
InputStream containing the template
Throws:
org.apache.velocity.exception.ResourceNotFoundException


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.