|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StringResourceRepository
A StringResourceRepository functions as a central repository for Velocity templates stored in Strings.
| Method Summary | |
|---|---|
java.lang.String |
getEncoding()
Returns the current encoding of this repository. |
StringResource |
getStringResource(java.lang.String name)
get the string resource that is stored with given key |
void |
putStringResource(java.lang.String name,
java.lang.String body)
add a string resource with given key. |
void |
putStringResource(java.lang.String name,
java.lang.String body,
java.lang.String encoding)
add a string resource with given key. |
void |
removeStringResource(java.lang.String name)
delete a string resource with given key. |
void |
setEncoding(java.lang.String encoding)
Sets the default encoding of the repository. |
| Method Detail |
|---|
StringResource getStringResource(java.lang.String name)
name - String name to retrieve from the repository.
void putStringResource(java.lang.String name,
java.lang.String body)
name - The String name to store the template under.body - A String containing a template.
void putStringResource(java.lang.String name,
java.lang.String body,
java.lang.String encoding)
name - The String name to store the template under.body - A String containing a template.encoding - The encoding of this string templatevoid removeStringResource(java.lang.String name)
name - The string name to remove from the repository.void setEncoding(java.lang.String encoding)
encoding - The encoding to use.java.lang.String getEncoding()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||