org.apache.velocity.runtime.resource
Class ContentResource

java.lang.Object
  extended by org.apache.velocity.runtime.resource.Resource
      extended by 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 191743 2005-06-21 23:22:20Z dlr $
Author:
Jason van Zyl, Geir Magnusson Jr.

Field Summary
 
Fields inherited from class org.apache.velocity.runtime.resource.Resource
data, encoding, lastModified, MILLIS_PER_SECOND, modificationCheckInterval, name, nextCheck, resourceLoader, rsvc
 
Constructor Summary
ContentResource()
          Default empty constructor
 
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, isSourceModified, requiresChecking, setData, setEncoding, setLastModified, setModificationCheckInterval, setName, setResourceLoader, setRuntimeServices, touch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentResource

public ContentResource()
Default empty constructor

Method Detail

process

public boolean process()
                throws ResourceNotFoundException
Pull in static content and store it.

Specified by:
process in class Resource
Returns:
Whether the resource could be processed successfully. For a Template or ContentResource, this indicates whether the resource could be read.
Throws:
ResourceNotFoundException - Resource could not be found.


Copyright © 2002 Apache Software Foundation. All Rights Reserved.