Class ContentResource
- java.lang.Object
-
- org.apache.velocity.runtime.resource.Resource
-
- org.apache.velocity.runtime.resource.ContentResource
-
- All Implemented Interfaces:
Cloneable
public class ContentResource extends Resource
This class represent a general text resource that may have been retrieved from any number of possible sources. Also of interest is Velocity'sTemplateResource.- 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
Constructors Constructor Description ContentResource()Default empty constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanprocess()Pull in static content and store it.-
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
-
-
-
-
Method Detail
-
process
public boolean process() throws ResourceNotFoundExceptionPull in static content and store it.- Specified by:
processin classResource- Returns:
- True if everything went ok.
- Throws:
ResourceNotFoundException- Resource could not be found.
-
-