Package com.sun.identity.policy
Class ResBundleUtils
- java.lang.Object
-
- com.sun.identity.policy.ResBundleUtils
-
public class ResBundleUtils extends Object
Class to model resource bundle to be used to get messages from, using the default locale, specified in AMConfig.properties or OS locale if AMConfig.properties does not have locale defined
-
-
Field Summary
Fields Modifier and Type Field Description static ResourceBundlebundlestatic StringrbNameresource bundle name
-
Constructor Summary
Constructors Constructor Description ResBundleUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetString(String key)Returns localized string for the default locale specified in AMConfig.static StringgetString(String key, Object[] params)Returns localized formatted string
-
-
-
Field Detail
-
rbName
public static final String rbName
resource bundle name- See Also:
- Constant Field Values
-
bundle
public static ResourceBundle bundle
-
-
Method Detail
-
getString
public static String getString(String key)
Returns localized string for the default locale specified in AMConfig. properties or if null based on the default OS locale.- Parameters:
key- key to look up the localized message for- Returns:
- localized string or
keyif localized string is missing
-
getString
public static String getString(String key, Object[] params)
Returns localized formatted string- Parameters:
key- key to look up the localized message forparams- parameters to be applied to the message- Returns:
- localized string or
keyif localized string is missing, uses locale as set in AMConfig.properties or default OS locale.
-
-