public interface StringResourceRepository
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2000–2021 The Apache Software Foundation. All rights reserved.