public class WebappClassTemplateLoader extends Object implements freemarker.cache.TemplateLoader
WebappTemplateLoader and, if not
found, a ClassTemplateLoader. The resources are loaded from the
webapp root and from the classpath root.| Constructor and Description |
|---|
WebappClassTemplateLoader(javax.servlet.ServletContext servletContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeTemplateSource(Object templateSource) |
Object |
findTemplateSource(String name) |
long |
getLastModified(Object templateSource) |
Reader |
getReader(Object templateSource,
String encoding) |
public WebappClassTemplateLoader(javax.servlet.ServletContext servletContext)
servletContext - The servlet context.public Object findTemplateSource(String name) throws IOException
findTemplateSource in interface freemarker.cache.TemplateLoaderIOExceptionpublic void closeTemplateSource(Object templateSource) throws IOException
closeTemplateSource in interface freemarker.cache.TemplateLoaderIOExceptionpublic long getLastModified(Object templateSource)
getLastModified in interface freemarker.cache.TemplateLoaderpublic Reader getReader(Object templateSource, String encoding) throws IOException
getReader in interface freemarker.cache.TemplateLoaderIOExceptionCopyright © 2000–2025 Apache Software Foundation. All rights reserved.