Package com.trafficparrot.sdk.ibmmq
Class SdkIbmMqUtils
java.lang.Object
com.trafficparrot.sdk.ibmmq.SdkIbmMqUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbyteArrayAsHexString(byte[] correlationId) static voidcloseQuietly(com.ibm.mq.MQDestination mqDestination) static StringcorrelationIdToString(com.ibm.mq.MQMessage message) static voiddisconnectAndCloseQuietly(com.ibm.mq.MQQueueManager mqQueueManager) static voiddisconnectQuietly(com.ibm.mq.MQQueueManager mqQueueManager) static StringformatPutDateTime(GregorianCalendar putDateTime) static byte[]loggableMessageBytes(com.ibm.mq.MQMessage message) The message's bytes as sent, except that a CICS bridge header's Authenticator, a password or passticket, is masked.static StringmessageIdToString(com.ibm.mq.MQMessage message) static StringmqMessageToString(com.ibm.mq.MQMessage message) static StringputDateTime(com.ibm.mq.MQMessage message) static StringreadMessageBodySkipHeaders(com.ibm.mq.MQMessage message) static byte[]readMessageBytes(com.ibm.mq.MQMessage message) static StringreadMessageString(com.ibm.mq.MQMessage message) static StringresolvedDestinationName(com.ibm.mq.MQDestination mqDestination) static voidsetMessageBody(com.ibm.mq.MQMessage message, String body)
-
Field Details
-
logMessageBody
public static boolean logMessageBody -
logMessageBodyAsPrintableCharacters
public static boolean logMessageBodyAsPrintableCharacters
-
-
Constructor Details
-
SdkIbmMqUtils
public SdkIbmMqUtils()
-
-
Method Details
-
resolvedDestinationName
public static String resolvedDestinationName(com.ibm.mq.MQDestination mqDestination) throws com.ibm.mq.MQException - Throws:
com.ibm.mq.MQException
-
closeQuietly
public static void closeQuietly(com.ibm.mq.MQDestination mqDestination) -
disconnectQuietly
public static void disconnectQuietly(com.ibm.mq.MQQueueManager mqQueueManager) -
disconnectAndCloseQuietly
public static void disconnectAndCloseQuietly(com.ibm.mq.MQQueueManager mqQueueManager) -
mqMessageToString
-
messageIdToString
-
correlationIdToString
-
byteArrayAsHexString
-
readMessageString
- Throws:
IOException
-
readMessageBytes
- Throws:
IOException
-
loggableMessageBytes
The message's bytes as sent, except that a CICS bridge header's Authenticator, a password or passticket, is masked. Use these, notreadMessageBytes(com.ibm.mq.MQMessage), wherever the message is logged.- Throws:
IOException
-
putDateTime
-
formatPutDateTime
-
readMessageBodySkipHeaders
- Throws:
IOException
-
setMessageBody
- Throws:
IOException
-