Package | Description |
---|---|
org.apache.velocity | |
org.apache.velocity.context | |
org.apache.velocity.runtime.resource | |
org.apache.velocity.runtime.resource.loader |
Modifier and Type | Class and Description |
---|---|
class |
Template
This class is used for controlling all template
operations.
|
Modifier and Type | Method and Description |
---|---|
Resource |
InternalContextAdapterImpl.getCurrentResource() |
Resource |
ChainedInternalContextAdapter.getCurrentResource() |
Modifier and Type | Method and Description |
---|---|
void |
InternalContextAdapterImpl.setCurrentResource(Resource r) |
void |
ChainedInternalContextAdapter.setCurrentResource(Resource r) |
Modifier and Type | Class and Description |
---|---|
class |
ContentResource
This class represent a general text resource that may have been
retrieved from any number of possible sources.
|
Modifier and Type | Field and Description |
---|---|
protected Map<Object,Resource> |
ResourceCacheImpl.cache
Cache storage, assumed to be thread-safe.
|
Modifier and Type | Method and Description |
---|---|
protected Resource |
ResourceManagerImpl.createResource(String resourceName,
int resourceType)
Create a new Resource of the specified type.
|
Resource |
ResourceCacheImpl.get(Object key) |
Resource |
ResourceCache.get(Object resourceKey)
retrieves a Resource from the
cache
|
static Resource |
ResourceFactory.getResource(String resourceName,
int resourceType) |
Resource |
ResourceManagerImpl.getResource(String resourceName,
int resourceType,
String encoding)
Gets the named resource.
|
Resource |
ResourceManager.getResource(String resourceName,
int resourceType,
String encoding)
Gets the named resource.
|
protected Resource |
ResourceManagerImpl.loadResource(String resourceName,
int resourceType,
String encoding)
Loads a resource from the current set of resource loaders.
|
Resource |
ResourceCacheImpl.put(Object key,
Resource value) |
Resource |
ResourceCache.put(Object resourceKey,
Resource resource)
stores a Resource in the cache
|
protected Resource |
ResourceManagerImpl.refreshResource(Resource resource,
String encoding)
Takes an existing resource, and 'refreshes' it.
|
Resource |
ResourceCacheImpl.remove(Object key) |
Resource |
ResourceCache.remove(Object resourceKey)
removes a Resource from the cache
|
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceCacheImpl.put(Object key,
Resource value) |
Resource |
ResourceCache.put(Object resourceKey,
Resource resource)
stores a Resource in the cache
|
protected Resource |
ResourceManagerImpl.refreshResource(Resource resource,
String encoding)
Takes an existing resource, and 'refreshes' it.
|
Modifier and Type | Method and Description |
---|---|
long |
StringResourceLoader.getLastModified(Resource resource) |
long |
URLResourceLoader.getLastModified(Resource resource)
Checks to see when a resource was last modified
|
long |
DataSourceResourceLoader.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 |
FileResourceLoader.getLastModified(Resource resource) |
long |
ClasspathResourceLoader.getLastModified(Resource resource) |
boolean |
StringResourceLoader.isSourceModified(Resource resource) |
boolean |
URLResourceLoader.isSourceModified(Resource resource)
Checks to see if a resource has been deleted, moved or modified.
|
boolean |
DataSourceResourceLoader.isSourceModified(Resource resource) |
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 |
FileResourceLoader.isSourceModified(Resource resource)
How to keep track of all the modified times
across the paths.
|
boolean |
ClasspathResourceLoader.isSourceModified(Resource resource) |
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.