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, setModificationCheckIntervalpublic 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 ResourceLoaderpublic boolean isSourceModified(Resource resource)
isSourceModified in class ResourceLoaderpublic java.io.Reader getResourceReader(java.lang.String source,
java.lang.String encoding)
throws ResourceNotFoundException
getResourceReader in class ResourceLoaderResourceNotFoundExceptionpublic void init(ExtProperties configuration)
init in class ResourceLoaderCopyright © 2005-2020 Restlet.