public class I18n
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
static java.lang.String |
NOT_INITIALIZED_MSG
Field NOT_INITIALIZED_MSG
|
static java.util.List |
SUPPORTED_LANGUAGE_CODES |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getExceptionMessage(java.lang.String msgID)
Method getExceptionMessage
|
static java.lang.String |
getExceptionMessage(java.lang.String msgID,
java.lang.Exception originalException)
Method getExceptionMessage
|
static java.lang.String |
getExceptionMessage(java.lang.String msgID,
java.lang.Object[] exArgs)
Method getExceptionMessage
|
static void |
init(java.lang.String _defaultLanguageCode,
java.lang.String _defaultCountryCode)
Method init
|
static void |
initLocale(java.lang.String languageCode,
java.lang.String countryCode)
Method initLocale
|
static java.lang.String |
translate(java.lang.String message)
Method translate
translates a message ID into an internationalized String, see alse
XMLSecurityException.getExceptionMEssage() |
static java.lang.String |
translate(java.lang.String message,
java.lang.Object[] args)
Method translate
translates a message ID into an internationalized String, see alse
XMLSecurityException.getExceptionMEssage(). |
protected static org.slf4j.Logger logger
public static java.util.List SUPPORTED_LANGUAGE_CODES
public static final java.lang.String NOT_INITIALIZED_MSG
public static java.lang.String translate(java.lang.String message,
java.lang.Object[] args)
XMLSecurityException.getExceptionMEssage(). The strings are
stored in the ResourceBundle, which is identified in
exceptionMessagesResourceBundleBasemessage - args - is an Object[] array of strings which are inserted into the String which is retrieved from the ResouceBundlepublic static java.lang.String translate(java.lang.String message)
XMLSecurityException.getExceptionMEssage()message - public static java.lang.String getExceptionMessage(java.lang.String msgID)
msgID - public static java.lang.String getExceptionMessage(java.lang.String msgID,
java.lang.Exception originalException)
msgID - originalException - public static java.lang.String getExceptionMessage(java.lang.String msgID,
java.lang.Object[] exArgs)
msgID - exArgs - public static void init(java.lang.String _defaultLanguageCode,
java.lang.String _defaultCountryCode)
_defaultLanguageCode - _defaultCountryCode - public static void initLocale(java.lang.String languageCode,
java.lang.String countryCode)
languageCode - countryCode - Copyright © 2025. All rights reserved.