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) |
Reader |
getResourceReader(String source,
String encoding) |
static Map<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 Map<String,Representation> getStore()
public long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
isSourceModified
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public Reader getResourceReader(String source, String encoding) throws org.apache.velocity.exception.ResourceNotFoundException
getResourceReader
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.exception.ResourceNotFoundException
public void init(org.apache.velocity.util.ExtProperties configuration)
init
in class org.apache.velocity.runtime.resource.loader.ResourceLoader
Copyright © 2005-2017 Restlet.