Class LocalizableMessage
java.lang.Object
org.glassfish.jersey.internal.l10n.LocalizableMessage
- All Implemented Interfaces:
Localizable
- Author:
- WS Development Team
-
Field Summary
Fields inherited from interface org.glassfish.jersey.internal.l10n.Localizable
NOT_LOCALIZABLE
-
Constructor Summary
ConstructorDescriptionLocalizableMessage
(String bundlename, String key, Object... args) Deprecated.LocalizableMessage
(String bundlename, LocalizableMessageFactory.ResourceBundleSupplier rbSupplier, String key, Object... args) -
Method Summary
Modifier and TypeMethodDescriptionObject[]
Returns the arguments for message formatting.getKey()
Gets the key in the resource bundle.getResourceBundle
(Locale locale) Get the resource bundle of the given localization.Get the name of the localization messages resource bundle.
-
Constructor Details
-
LocalizableMessage
Deprecated. -
LocalizableMessage
public LocalizableMessage(String bundlename, LocalizableMessageFactory.ResourceBundleSupplier rbSupplier, String key, Object... args)
-
-
Method Details
-
getKey
Description copied from interface:Localizable
Gets the key in the resource bundle.- Specified by:
getKey
in interfaceLocalizable
- Returns:
- if this method returns
Localizable.NOT_LOCALIZABLE
, that means the message is not localizable, and the first item ofLocalizable.getArguments()
array holds aString
.
-
getArguments
Description copied from interface:Localizable
Returns the arguments for message formatting.- Specified by:
getArguments
in interfaceLocalizable
- Returns:
- can be an array of length 0 but never be
null
.
-
getResourceBundleName
Description copied from interface:Localizable
Get the name of the localization messages resource bundle.- Specified by:
getResourceBundleName
in interfaceLocalizable
- Returns:
- the localization messages resource bundle name.
-
getResourceBundle
Description copied from interface:Localizable
Get the resource bundle of the given localization.- Specified by:
getResourceBundle
in interfaceLocalizable
- Parameters:
locale
- the givenLocale
- Returns:
- the localization messages resource bundle for given locale.
-