Uses of Class
org.apache.velocity.runtime.resource.Resource
-
Packages that use Resource Package Description org.apache.velocity org.apache.velocity.context org.apache.velocity.runtime.resource org.apache.velocity.runtime.resource.loader -
-
Uses of Resource in org.apache.velocity
Subclasses of Resource in org.apache.velocity Modifier and Type Class Description class
Template
This class is used for controlling all template operations. -
Uses of Resource in org.apache.velocity.context
Fields in org.apache.velocity.context declared as Resource Modifier and Type Field Description private Resource
InternalContextBase. currentResource
Current resource - used for carrying encoding and other information down into the rendering processMethods in org.apache.velocity.context that return Resource Modifier and Type Method Description Resource
ChainedInternalContextAdapter. getCurrentResource()
Resource
InternalContextAdapterImpl. getCurrentResource()
Resource
InternalContextBase. getCurrentResource()
Resource
InternalHousekeepingContext. getCurrentResource()
temporary fix to enable #include() to figure out current encoding.Methods in org.apache.velocity.context with parameters of type Resource Modifier and Type Method Description void
ChainedInternalContextAdapter. setCurrentResource(Resource r)
void
InternalContextAdapterImpl. setCurrentResource(Resource r)
void
InternalContextBase. setCurrentResource(Resource r)
void
InternalHousekeepingContext. setCurrentResource(Resource r)
-
Uses of Resource in org.apache.velocity.runtime.resource
Subclasses of Resource in org.apache.velocity.runtime.resource Modifier and Type Class Description class
ContentResource
This class represent a general text resource that may have been retrieved from any number of possible sources.Methods in org.apache.velocity.runtime.resource that return Resource Modifier and Type Method Description protected Resource
ResourceManagerImpl. createResource(java.lang.String resourceName, int resourceType)
Create a new Resource of the specified type.Resource
ResourceCache. get(java.lang.Object resourceKey)
retrieves a Resource from the cacheResource
ResourceCacheImpl. get(java.lang.Object key)
static Resource
ResourceFactory. getResource(java.lang.String resourceName, int resourceType)
Resource
ResourceManager. getResource(java.lang.String resourceName, int resourceType, java.lang.String encoding)
Gets the named resource.Resource
ResourceManagerImpl. getResource(java.lang.String resourceName, int resourceType)
Resource
ResourceManagerImpl. getResource(java.lang.String resourceName, int resourceType, java.lang.String encoding)
Gets the named resource.protected Resource
ResourceManagerImpl. loadResource(java.lang.String resourceName, int resourceType, java.lang.String encoding)
Loads a resource from the current set of resource loaders.Resource
ResourceCache. put(java.lang.Object resourceKey, Resource resource)
stores a Resource in the cacheResource
ResourceCacheImpl. put(java.lang.Object key, Resource value)
protected Resource
ResourceManagerImpl. refreshResource(Resource resource, java.lang.String encoding)
Takes an existing resource, and 'refreshes' it.Resource
ResourceCache. remove(java.lang.Object resourceKey)
removes a Resource from the cacheResource
ResourceCacheImpl. remove(java.lang.Object key)
Methods in org.apache.velocity.runtime.resource with parameters of type Resource Modifier and Type Method Description Resource
ResourceCache. put(java.lang.Object resourceKey, Resource resource)
stores a Resource in the cacheResource
ResourceCacheImpl. put(java.lang.Object key, Resource value)
protected Resource
ResourceManagerImpl. refreshResource(Resource resource, java.lang.String encoding)
Takes an existing resource, and 'refreshes' it. -
Uses of Resource in org.apache.velocity.runtime.resource.loader
Methods in org.apache.velocity.runtime.resource.loader with parameters of type Resource Modifier and Type Method Description long
ClasspathResourceLoader. getLastModified(Resource resource)
long
DataSourceResourceLoader. getLastModified(Resource resource)
long
FileResourceLoader. getLastModified(Resource resource)
long
JarResourceLoader. getLastModified(Resource resource)
abstract long
ResourceLoader. getLastModified(Resource resource)
Get the last modified time of the InputStream source that was used to create the template.long
StringResourceLoader. getLastModified(Resource resource)
long
URLResourceLoader. getLastModified(Resource resource)
Checks to see when a resource was last modifiedboolean
ClasspathResourceLoader. isSourceModified(Resource resource)
boolean
DataSourceResourceLoader. isSourceModified(Resource resource)
boolean
FileResourceLoader. isSourceModified(Resource resource)
How to keep track of all the modified times across the paths.boolean
JarResourceLoader. isSourceModified(Resource resource)
abstract boolean
ResourceLoader. isSourceModified(Resource resource)
Given a template, check to see if the source of InputStream has been modified.boolean
StringResourceLoader. isSourceModified(Resource resource)
boolean
URLResourceLoader. isSourceModified(Resource resource)
Checks to see if a resource has been deleted, moved or modified.private long
DataSourceResourceLoader. readLastModified(Resource resource, java.lang.String operation)
Fetches the last modification time of the resource
-