| org.apache.velocity.runtime.resource.util.StringResourceRepository
All known Subclasses: org.apache.velocity.runtime.resource.util.StringResourceRepositoryImpl,
StringResourceRepository | public interface StringResourceRepository (Code) | | A StringResourceRepository functions as a central repository for Velocity templates
stored in Strings.
author: Eelco Hillenius author: Henning P. Schmiedehausen version: $Id: StringResourceRepository.java 479058 2006-11-25 00:26:32Z henning $ |
getEncoding | String getEncoding()(Code) | | Returns the current encoding of this repository.
The current encoding of this repository. |
getStringResource | StringResource getStringResource(String name)(Code) | | get the string resource that is stored with given key
Parameters: name - String name to retrieve from the repository. A StringResource containing the template. |
putStringResource | void putStringResource(String name, String body)(Code) | | add a string resource with given key.
Parameters: name - The String name to store the template under. Parameters: body - A String containing a template. |
removeStringResource | void removeStringResource(String name)(Code) | | delete a string resource with given key.
Parameters: name - The string name to remove from the repository. |
setEncoding | void setEncoding(String encoding)(Code) | | Sets the encoding of the repository. The encoding should be stored per
template string so that multiple encodings can be stored in a single repository.
The default implementation does this correctly.
Parameters: encoding - The encoding to use. |
|
|