Class ContentResource
java.lang.Object
org.apache.velocity.runtime.resource.Resource
org.apache.velocity.runtime.resource.ContentResource
- All Implemented Interfaces:
Cloneable
This class represent a general text resource that may have been
retrieved from any number of possible sources.
Also of interest is Velocity's
Template
Resource
.- Version:
- $Id$
- Author:
- Jason van Zyl, Geir Magnusson Jr.
-
Field Summary
Fields inherited from class org.apache.velocity.runtime.resource.Resource
data, encoding, lastModified, log, MILLIS_PER_SECOND, modificationCheckInterval, name, nextCheck, resourceLoader, rsvc, type
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.velocity.runtime.resource.Resource
clone, deepCloneData, getData, getEncoding, getLastModified, getName, getResourceLoader, getType, isSourceModified, requiresChecking, setData, setEncoding, setLastModified, setModificationCheckInterval, setName, setResourceLoader, setRuntimeServices, setType, touch
-
Constructor Details
-
ContentResource
public ContentResource()Default empty constructor
-
-
Method Details
-
process
Pull in static content and store it.- Specified by:
process
in classResource
- Returns:
- True if everything went ok.
- Throws:
ResourceNotFoundException
- Resource could not be found.
-