Package org.apache.xml.security.utils
Class I18n
java.lang.Object
org.apache.xml.security.utils.I18n
The Internationalization (I18N) pack.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetExceptionMessage(String msgID) Method getExceptionMessagestatic StringgetExceptionMessage(String msgID, Exception originalException) Method getExceptionMessagestatic StringgetExceptionMessage(String msgID, Object[] exArgs) Method getExceptionMessagestatic voidMethod initstatic voidinit(ResourceBundle resourceBundle) Method initstatic StringMethod translate translates a message ID into an internationalized String, see alsoXMLSecurityException.getExceptionMessage()static StringMethod translate translates a message ID into an internationalized String, see alseXMLSecurityException.getExceptionMEssage().
-
Field Details
-
NOT_INITIALIZED_MSG
Field NOT_INITIALIZED_MSG- See Also:
-
-
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 alsoXMLSecurityException.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:
languageCode-countryCode-
-
init
Method init- Parameters:
resourceBundle-
-