|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.jstl.fmt.LocalizationContext
public class LocalizationContext
Class representing an I18N localization context.
An I18N localization context has two components: a resource bundle and the locale that led to the resource bundle match.
The resource bundle component is used by <fmt:message> for mapping message keys to localized messages, and the locale component is used by the <fmt:message>, <fmt:formatNumber>, <fmt:parseNumber>, <fmt:formatDate>, and <fmt:parseDate> actions as their formatting or parsing locale, respectively.
Constructor Summary | |
---|---|
LocalizationContext()
Constructs an empty I18N localization context. |
|
LocalizationContext(java.util.ResourceBundle bundle)
Constructs an I18N localization context from the given resource bundle. |
|
LocalizationContext(java.util.ResourceBundle bundle,
java.util.Locale locale)
Constructs an I18N localization context from the given resource bundle and locale. |
Method Summary | |
---|---|
java.util.Locale |
getLocale()
Gets the locale of this I18N localization context. |
java.util.ResourceBundle |
getResourceBundle()
Gets the resource bundle of this I18N localization context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalizationContext()
public LocalizationContext(java.util.ResourceBundle bundle, java.util.Locale locale)
The specified locale is the application- or browser-based preferred locale that led to the resource bundle match.
bundle
- The localization context's resource bundlelocale
- The localization context's localepublic LocalizationContext(java.util.ResourceBundle bundle)
The localization context's locale is taken from the given resource bundle.
bundle
- The resource bundleMethod Detail |
---|
public java.util.ResourceBundle getResourceBundle()
public java.util.Locale getLocale()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41