org.apache.velocity.runtime.resource

Class 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,v 1.10.4.1 2004/03/03 23:23:01 geirm Exp $

Authors:
Jason van Zyl
Geir Magnusson Jr.

Field Summary

Fields inherited from class org.apache.velocity.runtime.resource.Resource

MILLIS_PER_SECOND, data, encoding, lastModified, 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, process, requiresChecking, setData, setEncoding, setLastModified, setModificationCheckInterval, setName, setResourceLoader, setRuntimeServices, touch

Constructor Details

ContentResource

public ContentResource()
Default empty constructor

Method Details

process

public boolean process()
            throws ResourceNotFoundException
Pull in static content and store it.
Overrides:
process in interface Resource

Throws:
ResourceNotFoundException - Resource could not be found.


Copyright B) 2002 Apache Software Foundation. All Rights Reserved.