Class I18n
java.lang.Object
org.apache.xml.security.utils.I18n
The Internationalization (I18N) pack.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static booleanField alreadyInitializedstatic final StringField NOT_INITIALIZED_MSGprivate static ResourceBundleField resourceBundle -
Constructor Summary
Constructors -
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
-
resourceBundle
Field resourceBundle -
alreadyInitialized
private static boolean alreadyInitializedField alreadyInitialized
-
-
Constructor Details
-
I18n
private I18n()Constructor I18n
-
-
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
-
getExceptionMessage
-
getExceptionMessage
-
getExceptionMessage
-
init
-
init
-