no.sesat.search.view.velocity
Class URLVelocityTemplateLoader
java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
no.sesat.search.view.velocity.URLResourceLoader
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
| Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
className, isCachingOn, log, modificationCheckInterval, rsvc |
| 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 |
URLVelocityTemplateLoader
public URLVelocityTemplateLoader()
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.