|
||||||||||
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 | |
---|---|
String |
getEncoding()
Returns the current encoding of this repository. |
StringResource |
getStringResource(String name)
get the string resource that is stored with given key |
void |
putStringResource(String name,
String body)
add a string resource with given key. |
void |
removeStringResource(String name)
delete a string resource with given key. |
void |
setEncoding(String encoding)
Sets the encoding of the repository. |
Method Detail |
---|
StringResource getStringResource(String name)
name
- String name to retrieve from the repository.
void putStringResource(String name, String body)
name
- The String name to store the template under.body
- A String containing a template.void removeStringResource(String name)
name
- The string name to remove from the repository.void setEncoding(String encoding)
encoding
- The encoding to use.String getEncoding()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |