@RequestScoped public class JstlLocalization extends Object implements Localization
| Constructor and Description |
|---|
JstlLocalization(RequestInfo request) |
| Modifier and Type | Method and Description |
|---|---|
ResourceBundle |
getBundle()
Get the resource bundle for current locale.
|
Locale |
getFallbackLocale()
Get the fallback locale for current request.
|
Locale |
getLocale()
Get the locale for current request.
|
String |
getMessage(String key,
Object... parameters)
Returns a formated message or '???key???' if the key was not found.
|
public JstlLocalization(RequestInfo request)
public ResourceBundle getBundle()
LocalizationMissingResourceException.getBundle in interface LocalizationLocalization.getLocale()public Locale getLocale()
LocalizationgetLocale in interface Localizationpublic Locale getFallbackLocale()
LocalizationgetFallbackLocale in interface Localizationpublic String getMessage(String key, Object... parameters)
LocalizationgetMessage in interface LocalizationCopyright © 2014 Caelum. All Rights Reserved.