public class URLResourceLoader extends ResourceLoader
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.util.HashMap |
templateRoots |
className, isCachingOn, log, modificationCheckInterval, rsvc| 构造器和说明 |
|---|
URLResourceLoader() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getLastModified(Resource resource)
Checks to see when a resource was last modified
|
java.io.InputStream |
getResourceStream(java.lang.String name)
Get an InputStream so that the Runtime can build a
template with it.
|
int |
getTimeout()
Returns the current, custom timeout setting.
|
void |
init(org.apache.commons.collections.ExtendedProperties configuration)
Initialize the template loader with a
a resources class.
|
boolean |
isSourceModified(Resource resource)
Checks to see if a resource has been deleted, moved or modified.
|
commonInit, getClassName, getModificationCheckInterval, isCachingOn, resourceExists, setCachingOn, setModificationCheckIntervalpublic void init(org.apache.commons.collections.ExtendedProperties configuration)
ResourceLoaderpublic java.io.InputStream getResourceStream(java.lang.String name)
throws ResourceNotFoundException
getResourceStream 在类中 ResourceLoadername - name of template to fetch bytestream ofResourceNotFoundException - if template not found
in the file template path.public boolean isSourceModified(Resource resource)
isSourceModified 在类中 ResourceLoaderresource - Resource The resource to check for modificationpublic long getLastModified(Resource resource)
getLastModified 在类中 ResourceLoaderresource - Resource the resource to checkpublic int getTimeout()