Class MessageLoader
java.lang.Object
org.sblim.cimclient.internal.logging.MessageLoader
Class MessageLoader encapsulates the access to the resource file containing
log messages.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LevelReturns the level of a given message id based on the naming convention.static StringgetLocalizedMessage(String pKey) Returns the localized message for a given key.static StringgetMessage(String pKey) Returns the English message for a given key.
-
Method Details
-
getMessage
-
getLocalizedMessage
-
getLevel
Returns the level of a given message id based on the naming convention. The convention is:CIM<unique 4 digit id><level token>, e.g.CIM1234S. Valid level tokens areS, W, IandCforSEVERE, WARNING, INFOandCONFIGrespectively.- Parameters:
pKey- The message id- Returns:
- The level
-