public class JCATraceHelper extends java.lang.Object implements JCATracing
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
DBG_CONNECTOR_PROPERTY_SET, DBG_JM_EMAIL_SENTADDRESSES, ERR_CONFIG_NO_ERRQ, ERR_CONFIG_NO_INQ, ERR_CONFIG_NO_OUTQ, ERR_CONFIG_NO_Q, ERR_CONNECTOR_FILE_CLOSE, ERR_CONNECTOR_FILE_OPEN, ERR_CONNECTOR_FILE_WRITE, ERR_CONNECTOR_JM_CONTENTEMPTY, ERR_CONNECTOR_JM_MSGSENDMESSAGINGEXC, ERR_CONNECTOR_JM_NORECIPIENTSSPECIFIED, ERR_CONNECTOR_JM_NOTCONNECTED, ERR_JCA_NULL_JNDI, ERR_JCASAMPLE_INVALID_INPUT, ERR_JMS_CONNECT_CREATE, ERR_JMS_CONNECT_START, ERR_JMS_CONNECT_STOP, ERR_JMS_CREATE_BYTES, ERR_JMS_MESSAGEPRODUCER_CREATE, ERR_JMS_NO_CORRELATION_ID, ERR_JMS_QCF_LOOKUP, ERR_JMS_QTYPE_NOT_SUPPORTED, ERR_JMS_QUEUE_LOOKUP, ERR_JMS_RECEIVE_BYTES, ERR_JMS_REMOTE_RTQ_MGR_MISMATCH, ERR_JMS_RTQ_MGR_MISMATCH, ERR_JMS_SEND_BYTES, ERR_JMS_SESSION_CLOSE, ERR_JMS_SESSION_COMMIT, ERR_JMS_SESSION_CREATE, ERR_JMS_START_RECEIVE, ERR_MS_AUTO_COMMIT_FAIL, ERR_MS_CDATA_IOEXCEPTION, ERR_MS_CLASS_NOT_FOUND, ERR_MS_GENERIC_EXCEPTION, ERR_MS_ILLEGAL_STATE, ERR_MS_INVALID_CONNECTION_TYPE, ERR_MSG_RESOURCE_EXCEPTION, ERR_NAMING_EXCEPTION, JCAEMAIL_COMPONENT, JCAEMAIL_LOGGER, JCAEWG_COMPONENT, JCAEWG_LOGGER, JCAFILE_COMPONENT, JCAFILE_LOGGER, JCAJMS_COMPONENT, JCAJMS_LOGGER, JCAPA_COMPONENT, JCAPA_LOGGER, JCASAMPLE_COMPONENT, JCASAMPLE_LOGGER, JCASMSHTTP_COMPONENT, JCASMSHTTP_LOGGER, JCASMSWS_COMPONENT, JCASMSWS_LOGGER
Constructor and Description |
---|
JCATraceHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
doubleTheApostrophy(java.lang.String theString)
Insert an additional apostrophe if the message text contains an apostrophe.
|
static java.lang.Object[] |
generateMsgParms(java.lang.Object parm1)
Create an object array of one item to use as a parameter in a message.
|
static java.lang.Object[] |
generateMsgParms(java.lang.Object parm1,
java.lang.Object parm2)
Create an object array of two items to use as parameters in a message.
|
static java.lang.Object[] |
generateMsgParms(java.lang.Object parm1,
java.lang.Object parm2,
java.lang.Object parm3)
Create an object array of three items to use as parameters in a message.
|
static java.lang.Object[] |
generateMsgParms(java.lang.Object parm1,
java.lang.Object parm2,
java.lang.Object parm3,
java.lang.Object parm4)
Create an object array of four items to use as parameters in a message.
|
static java.lang.String |
getSystemMessage(java.lang.String loggerName,
java.lang.String msgKey,
java.lang.Object[] parms)
Return the textual description of the system message passed as argument using the default local.
|
static java.lang.String |
getSystemMessage(java.lang.String loggerName,
java.lang.String msgKey,
java.lang.Object[] parms,
java.util.Locale locale)
Return the textual description of the system message passed as argument.
|
static java.lang.String |
getSystemResourceBundleName(java.lang.String loggerName)
Retrieve the resource bundle associated with a system message.
|
public static final java.lang.String COPYRIGHT
public static java.lang.Object[] generateMsgParms(java.lang.Object parm1)
parm1
- Value of the first parameter to be substituted into the message text.public static java.lang.Object[] generateMsgParms(java.lang.Object parm1, java.lang.Object parm2)
parm1
- Value of the first parameter to be substituted into the message text.parm2
- Value of the first parameter to be substituted into the message text.public static java.lang.Object[] generateMsgParms(java.lang.Object parm1, java.lang.Object parm2, java.lang.Object parm3)
parm1
- Value of the first parameter to be substituted into the message text.parm2
- Value of the second parameter to be substituted into the message text.parm3
- Value of the third parameter to be substituted into the message text.public static java.lang.Object[] generateMsgParms(java.lang.Object parm1, java.lang.Object parm2, java.lang.Object parm3, java.lang.Object parm4)
parm1
- Value of the first parameter to be substituted into the message text.parm2
- Value of the second parameter to be substituted into the message text.parm3
- Value of the third parameter to be substituted into the message text.parm4
- Value of the fourth parameter to be substituted into the message text.public static java.lang.String getSystemMessage(java.lang.String loggerName, java.lang.String msgKey, java.lang.Object[] parms)
loggerName
- The logger name.msgKey
- The message key.parms
- Array of objects used as a placeholder replacement in the message text.public static java.lang.String getSystemMessage(java.lang.String loggerName, java.lang.String msgKey, java.lang.Object[] parms, java.util.Locale locale)
loggerName
- The logger name.msgKey
- String The message key.parms
- Object [] Array of objects used as a placeholder replacement in the message text.locale
- Locale Used to identify the resource bundle containing the translated message. If null, default locale is used.public static java.lang.String getSystemResourceBundleName(java.lang.String loggerName)
loggerName
- The logger name of the log to retrieve.public static java.lang.String doubleTheApostrophy(java.lang.String theString)
theString
- The message text.