| 
||||||||||
| 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 | 
putStringResource(String name,
                  String body,
                  String encoding)
add a string resource with given key.  | 
 void | 
removeStringResource(String name)
delete a string resource with given key.  | 
 void | 
setEncoding(String encoding)
Sets the default 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 putStringResource(String name,
                       String body,
                       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(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 | |||||||||