Module cloud.piranha.webapp.impl
Package cloud.piranha.webapp.impl
Class DefaultLocaleEncodingManager
java.lang.Object
cloud.piranha.webapp.impl.DefaultLocaleEncodingManager
- All Implemented Interfaces:
LocaleEncodingManager
The default LocaleEncodingManager.
- Author:
- Manfred Riem ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCharacterEncoding(String locale, String encoding)
Add a mapping between a locale and an encodinggetCharacterEncoding(String locale)
Get the encoding for the locale
-
Constructor Details
-
DefaultLocaleEncodingManager
public DefaultLocaleEncodingManager()Constructor.
-
-
Method Details
-
addCharacterEncoding
Description copied from interface:LocaleEncodingManager
Add a mapping between a locale and an encoding- Specified by:
addCharacterEncoding
in interfaceLocaleEncodingManager
- Parameters:
locale
- the locale to be the keyencoding
- the encoding to be the value
-
getCharacterEncoding
Description copied from interface:LocaleEncodingManager
Get the encoding for the locale- Specified by:
getCharacterEncoding
in interfaceLocaleEncodingManager
- Parameters:
locale
- the locale- Returns:
- the encoding for the locale, null otherwise
-