public class RepresentationResourceLoader
extends org.apache.velocity.runtime.resource.loader.ResourceLoader
| Constructor and Description |
|---|
RepresentationResourceLoader(Representation defaultRepresentation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource) |
java.io.Reader |
getResourceReader(java.lang.String source,
java.lang.String encoding) |
static java.util.Map<java.lang.String,Representation> |
getStore()
Returns the cache of template representations.
|
void |
init(org.apache.velocity.util.ExtProperties configuration) |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource) |
public RepresentationResourceLoader(Representation defaultRepresentation)
defaultRepresentation - The default representation to use.public static java.util.Map<java.lang.String,Representation> getStore()
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified in class org.apache.velocity.runtime.resource.loader.ResourceLoaderpublic boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
isSourceModified in class org.apache.velocity.runtime.resource.loader.ResourceLoaderpublic java.io.Reader getResourceReader(java.lang.String source,
java.lang.String encoding)
throws org.apache.velocity.exception.ResourceNotFoundException
getResourceReader in class org.apache.velocity.runtime.resource.loader.ResourceLoaderorg.apache.velocity.exception.ResourceNotFoundExceptionpublic void init(org.apache.velocity.util.ExtProperties configuration)
init in class org.apache.velocity.runtime.resource.loader.ResourceLoaderCopyright © 2005-2024 Restlet.