public class JMSData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DELIVERY_COUNT
The key for holding the number of times the messages has been delivered.
|
static java.lang.String |
DESTINATION_JNDI_NAME
The key for holding the JNDI name of the Destination.
|
static java.lang.String |
EXTRACTFILEID
The key for holding extract file id.
|
static java.lang.String |
EXTRACTFILESEQ
The key for holding extract file sequence.
|
static java.lang.String |
JMS_MESSAGEID
The key for holding the JMS provider generated message id.
|
static java.lang.String |
MESSAGE_REDELIVERED
The key for holding if the message has been redelivered.
|
static java.lang.String |
MESSAGE_UNIQUEID
The key for holding the generated internal unique id for a JMS message.
|
static java.lang.String |
MSGTYPE_TEXT
The message property name to indicate Text message.
|
static java.lang.String |
RECOVERY_STATUS
The key for holding extract file id.
|
static java.lang.String |
TEXT_ENCODING
The message property name to indicate Text message encoding.
|
Constructor and Description |
---|
JMSData(byte[] msgBody,
java.util.Map<java.lang.String,java.lang.String> msgHeaders) |
JMSData(byte[] msgBody,
java.util.Map<java.lang.String,java.lang.String> msgHeaders,
boolean compress) |
JMSData(java.lang.String textMsgBody,
java.util.Map<java.lang.String,java.lang.String> msgHeaders) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getMessageBody() |
java.util.Map<java.lang.String,java.lang.String> |
getMessageProperties() |
java.lang.String |
getTextMessageBody() |
boolean |
isCompress() |
boolean |
isTextMessage() |
public static final java.lang.String MESSAGE_UNIQUEID
public static final java.lang.String JMS_MESSAGEID
public static final java.lang.String DESTINATION_JNDI_NAME
public static final java.lang.String MESSAGE_REDELIVERED
public static final java.lang.String DELIVERY_COUNT
public static final java.lang.String EXTRACTFILEID
public static final java.lang.String RECOVERY_STATUS
public static final java.lang.String EXTRACTFILESEQ
public static final java.lang.String MSGTYPE_TEXT
public static final java.lang.String TEXT_ENCODING
public JMSData(byte[] msgBody, java.util.Map<java.lang.String,java.lang.String> msgHeaders, boolean compress)
msgBody
- the message body content.msgHeaders
- the Map of message properties.compress
- indicates whether to compress the message body.public JMSData(byte[] msgBody, java.util.Map<java.lang.String,java.lang.String> msgHeaders)
msgBody
- the message body content.msgHeaders
- the Map of message properties.public JMSData(java.lang.String textMsgBody, java.util.Map<java.lang.String,java.lang.String> msgHeaders)
msgBody
- the message body content.msgHeaders
- the Map of message properties.public java.util.Map<java.lang.String,java.lang.String> getMessageProperties()
public byte[] getMessageBody()
public java.lang.String getTextMessageBody()
public boolean isCompress()
public boolean isTextMessage()