public class RepresentationResourceLoader extends ResourceLoader
className, isCachingOn, log, modificationCheckInterval, rsvc
Constructor and Description |
---|
RepresentationResourceLoader(Representation defaultRepresentation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getLastModified(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(ExtProperties configuration) |
boolean |
isSourceModified(Resource resource) |
buildReader, commonInit, getClassName, getModificationCheckInterval, isCachingOn, resourceExists, setCachingOn, setModificationCheckInterval
public RepresentationResourceLoader(Representation defaultRepresentation)
defaultRepresentation
- The default representation to use.public static java.util.Map<java.lang.String,Representation> getStore()
public long getLastModified(Resource resource)
getLastModified
in class ResourceLoader
public boolean isSourceModified(Resource resource)
isSourceModified
in class ResourceLoader
public java.io.Reader getResourceReader(java.lang.String source, java.lang.String encoding) throws ResourceNotFoundException
getResourceReader
in class ResourceLoader
ResourceNotFoundException
public void init(ExtProperties configuration)
init
in class ResourceLoader
Copyright © 2005-2020 Restlet.