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) |
InputStream |
getResourceStream(String name) |
static Map<String,Representation> |
getStore()
Returns the cache of template representations.
|
void |
init(org.apache.commons.collections.ExtendedProperties configuration) |
boolean |
isSourceModified(Resource resource) |
commonInit, getClassName, getModificationCheckInterval, isCachingOn, resourceExists, setCachingOn, setModificationCheckInterval
public RepresentationResourceLoader(Representation defaultRepresentation)
defaultRepresentation
- The default representation to use.public static Map<String,Representation> getStore()
public long getLastModified(Resource resource)
getLastModified
in class ResourceLoader
public InputStream getResourceStream(String name) throws ResourceNotFoundException
getResourceStream
in class ResourceLoader
ResourceNotFoundException
public void init(org.apache.commons.collections.ExtendedProperties configuration)
init
in class ResourceLoader
public boolean isSourceModified(Resource resource)
isSourceModified
in class ResourceLoader
Copyright © 2005-2016 Restlet.