| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFAULT_RESOURCE
Default properties resource name. |
| private Properties | map
The mapping properties that have been initialized from the specified or default properties resource. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CharsetMapper(String
Name of a properties resource to be loaded name)Construct a new CharsetMapper using the specified properties resource. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCharsetMappingFromDeploymentDescriptor(String
The locale for a character set locale, String The charset to be associated with the locale charset)The deployment descriptor can have a locale-encoding-mapping-list element which describes the webapp's desired mapping from locale to charset. |
| public String | Returns: the charset nameThe locale for which to calculate a character set locale)Calculate the name of a character set to be assumed, given the specified Locale and the absence of a character set specified as part of the content type header. |
| DEFAULT_RESOURCE | back to summary |
|---|---|
| public static final String DEFAULT_RESOURCE Default properties resource name. | |
| map | back to summary |
|---|---|
| private Properties map The mapping properties that have been initialized from the specified or default properties resource. | |
| CharsetMapper | back to summary |
|---|---|
| public CharsetMapper() Construct a new CharsetMapper using the default properties resource. | |
| CharsetMapper | back to summary |
|---|---|
| public CharsetMapper(String name) Construct a new CharsetMapper using the specified properties resource.
| |
| addCharsetMappingFromDeploymentDescriptor | back to summary |
|---|---|
| public void addCharsetMappingFromDeploymentDescriptor(String locale, String charset) The deployment descriptor can have a locale-encoding-mapping-list element which describes the webapp's desired mapping from locale to charset. This method gets called when processing the web.xml file for a context | |
| getCharset | back to summary |
|---|---|
| public String getCharset(Locale locale) Calculate the name of a character set to be assumed, given the specified Locale and the absence of a character set specified as part of the content type header. | |