org.apache.velocity.runtime.resource
Class ContentResource
java.lang.Object
org.apache.velocity.runtime.resource.Resource
org.apache.velocity.runtime.resource.ContentResource
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's Template
Resource
.
- Version:
- $Id: ContentResource.java 687177 2008-08-19 22:00:32Z nbubna $
- Author:
- Jason van Zyl, Geir Magnusson Jr.
Method Summary |
boolean |
process()
Pull in static content and store it. |
Methods inherited from class org.apache.velocity.runtime.resource.Resource |
getData, getEncoding, getLastModified, getName, getResourceLoader, getType, isSourceModified, requiresChecking, setData, setEncoding, setLastModified, setModificationCheckInterval, setName, setResourceLoader, setRuntimeServices, setType, touch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentResource
public ContentResource()
- Default empty constructor
process
public boolean process()
throws ResourceNotFoundException
- Pull in static content and store it.
- Specified by:
process
in class Resource
- Returns:
- True if everything went ok.
- Throws:
ResourceNotFoundException
- Resource could not be
found.
Copyright © 2000-2008 The Apache Software Foundation. All Rights Reserved.