public class MQDLH extends com.ibm.mq.headers.internal.Header implements MQChainable
struct tagMQDLH {
MQCHAR4 StrucId; // Structure identifier
MQLONG Version; // Structure version number
MQLONG Reason; // Reason message arrived on dead-letter (undelivered-message) queue
MQCHAR48 DestQName; // Name of original destination queue
MQCHAR48 DestQMgrName; // Name of original destination queue manager
MQLONG Encoding; // Numeric encoding of data that follows MQDLH
MQLONG CodedCharSetId; // Character set identifier of data that follows MQDLH
MQCHAR8 Format; // Format name of data that follows MQDLH
MQLONG PutApplType; // Type of application that put message on dead-letter (undelivered-message) queue
MQCHAR28 PutApplName; // Name of application that put message on dead-letter (undelivered-message) queue
MQCHAR8 PutDate; // Date when message was put on dead-letter (undelivered-message) queue
MQCHAR8 PutTime; // Time when message was put on the dead-letter (undelivered-message) queue
};
MQHeader.Field| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
Size of the header in bytes
|
| Constructor and Description |
|---|
MQDLH()
Constructs an MQDLH instance with default field values.
|
MQDLH(java.io.DataInput message)
Constructs an MQDLH instance populated from an MQMessage.
|
MQDLH(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQDLH instance populated from a DataInput source.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format() |
int |
getCodedCharSetId()
Get the Character set identifier of data that follows.
|
java.lang.String |
getDestQMgrName()
get the Name of original destination queue manager
|
java.lang.String |
getDestQName()
get the Name of original destination queue
|
int |
getEncoding()
Get the numeric encoding of the data that follows.
|
java.lang.String |
getFormat()
get the Format name of data that follows MQDLH
|
java.lang.String |
getPutApplName()
get the Name of application that put message on dead-letter queue
|
int |
getPutApplType()
get the Type of application that put message on dead-letter queue
|
java.lang.String |
getPutDate()
get the Date when message was put on dead-letter queue
|
java.lang.String |
getPutTime()
get the Time when message was put on dead-letter queue
|
int |
getReason()
get the Reason message arrived on dead-letter queue
|
java.lang.String |
getStrucId()
Get the structure identifier; the value will be MQDLH_STRUC_ID
|
int |
getVersion()
Get the Structure version number
|
int |
nextCharacterSet() |
void |
nextCharacterSet(int value)
Sets the CCSID of the next header or message content.
|
int |
nextEncoding() |
void |
nextEncoding(int value)
Sets the numeric encoding of the next header or message content.
|
java.lang.String |
nextFormat() |
void |
nextFormat(java.lang.String value)
Sets the format of the next header or message content.
|
void |
setCodedCharSetId(int value)
Set the Character set identifier of data that follows.
|
void |
setDestQMgrName(java.lang.String value)
set the Name of original destination queue manager
|
void |
setDestQName(java.lang.String value)
set the Name of original destination queue
|
void |
setEncoding(int value)
Set the numeric encoding of the data that follows.
|
void |
setFormat(java.lang.String value)
set the Format name of data that follows MQDLH
|
void |
setPutApplName(java.lang.String value)
set the Name of application that put message on dead-letter queue
|
void |
setPutApplType(int value)
set the Type of application that put message on dead-letter queue
|
void |
setPutDate(java.lang.String value)
set the Date when message was put on dead-letter queue
|
void |
setPutTime(java.lang.String value)
set the Time when message was put on dead-letter queue
|
void |
setReason(int value)
set the Reason message arrived on dead-letter queue
|
characterSet, encoding, fields, getBytesValue, getCharValue, getCharValue, getIntValue, getJmqiEnv, getStringValue, getValue, headerType, read, read, read, setBytesValue, setCharValue, setCharValue, setIntValue, setStringValue, setValue, size, store, store, toString, type, validate, write, writepublic static final int SIZE
public MQDLH()
public MQDLH(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQDLH stucturejava.io.IOException - if there is a problem reading the message contentpublic MQDLH(java.io.DataInput message,
int encoding,
int characterSet)
throws MQDataException,
java.io.IOException
message - the MQMessage or other DataInput source to readencoding - the initial numeric encoding of the data in the messagecharacterSet - the initial CCSID of the data in the messageMQDataException - if the message content does not yield a valid MQDLH stucturejava.io.IOException - if there is a problem reading the message contentpublic java.lang.String getStrucId()
public int getVersion()
public int getReason()
public void setReason(int value)
value - the Reason message arrived on dead-letter queuepublic java.lang.String getDestQName()
public void setDestQName(java.lang.String value)
value - the Name of original destination queuepublic java.lang.String getDestQMgrName()
public void setDestQMgrName(java.lang.String value)
value - the Name of original destination queue managerpublic int getEncoding()
public void setEncoding(int value)
value - the numeric encoding. A combination of MQENC_* values.public int getCodedCharSetId()
public void setCodedCharSetId(int value)
value - the Character set identifier.public java.lang.String getFormat()
public void setFormat(java.lang.String value)
value - the Format name of data that follows MQDLHpublic int getPutApplType()
public void setPutApplType(int value)
value - the Type of application that put message on dead-letter queuepublic java.lang.String getPutApplName()
public void setPutApplName(java.lang.String value)
value - the Name of application that put message on dead-letter queuepublic java.lang.String getPutDate()
public void setPutDate(java.lang.String value)
value - the Date when message was put on dead-letter queuepublic java.lang.String getPutTime()
public void setPutTime(java.lang.String value)
value - the Time when message was put on dead-letter queuepublic int nextEncoding()
nextEncoding in interface MQChainableMQChainable.nextEncoding()public void nextEncoding(int value)
MQChainablenextEncoding in interface MQChainableMQChainable.nextEncoding(int)public int nextCharacterSet()
nextCharacterSet in interface MQChainableMQChainable.nextCharacterSet()public void nextCharacterSet(int value)
MQChainablenextCharacterSet in interface MQChainableMQChainable.nextCharacterSet(int)public java.lang.String nextFormat()
nextFormat in interface MQChainableMQChainable.nextFormat()public void nextFormat(java.lang.String value)
MQChainablenextFormat in interface MQChainableMQChainable.nextFormat(java.lang.String)public java.lang.String format()
format in interface MQChainableMQChainable.format()