Package org.apache.xml.security.utils
Class I18n
java.lang.Object
org.apache.xml.security.utils.I18n
The Internationalization (I18N) pack.
- Author:
- Christian Geuer-Pollmann
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static String
Field _countryCodeprotected static String
Field _languageCodeprotected static boolean
Field alreadyInitializedstatic String
Field defaultCountryCodestatic String
Field defaultLanguageCodestatic final String
Field NOT_INITIALIZED_MSGprotected static ResourceBundle
Field resourceBundle -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getExceptionMessage
(String msgID) Method getExceptionMessagestatic String
getExceptionMessage
(String msgID, Exception originalException) Method getExceptionMessagestatic String
getExceptionMessage
(String msgID, Object[] exArgs) Method getExceptionMessagestatic void
Method initstatic void
initLocale
(String languageCode, String countryCode) Method initLocalestatic String
Method translate translates a message ID into an internationalized String, see alseXMLSecurityException.getExceptionMEssage()
static String
Method translate translates a message ID into an internationalized String, see alseXMLSecurityException.getExceptionMEssage()
.
-
Field Details
-
NOT_INITIALIZED_MSG
Field NOT_INITIALIZED_MSG- See Also:
-
defaultLanguageCode
Field defaultLanguageCode -
defaultCountryCode
Field defaultCountryCode -
resourceBundle
Field resourceBundle -
alreadyInitialized
protected static boolean alreadyInitializedField alreadyInitialized -
_languageCode
Field _languageCode -
_countryCode
Field _countryCode
-
-
Method Details
-
translate
Method translate translates a message ID into an internationalized String, see alseXMLSecurityException.getExceptionMEssage()
. The strings are stored in theResourceBundle
, which is identified inexceptionMessagesResourceBundleBase
- Parameters:
message
-args
- is anObject[]
array of strings which are inserted into the String which is retrieved from theResouceBundle
- Returns:
- message translated
-
translate
Method translate translates a message ID into an internationalized String, see alseXMLSecurityException.getExceptionMEssage()
- Parameters:
message
-- Returns:
- message translated
-
getExceptionMessage
Method getExceptionMessage- Parameters:
msgID
-- Returns:
- message translated
-
getExceptionMessage
Method getExceptionMessage- Parameters:
msgID
-originalException
-- Returns:
- message translated
-
getExceptionMessage
Method getExceptionMessage- Parameters:
msgID
-exArgs
-- Returns:
- message translated
-
init
Method init- Parameters:
_defaultLanguageCode
-_defaultCountryCode
-
-
initLocale
Method initLocale- Parameters:
languageCode
-countryCode
-
-