Package com.ibm.mq.headers
Class MQDLH
java.lang.Object
com.ibm.mq.jmqi.JmqiObject
com.ibm.mq.headers.internal.Header
com.ibm.mq.headers.MQDLH
- All Implemented Interfaces:
MQChainable,MQData,MQHeader
MQDLH (dead-letter header) header class.
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
};
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ibm.mq.headers.MQHeader
MQHeader.Field -
Field Summary
FieldsFields inherited from class com.ibm.mq.headers.internal.Header
DEFAULT_CCSID, DEFAULT_ENCODING, delegateFields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat()intGet the Character set identifier of data that follows.get the Name of original destination queue managerget the Name of original destination queueintGet the numeric encoding of the data that follows.get the Format name of data that follows MQDLHget the Name of application that put message on dead-letter queueintget the Type of application that put message on dead-letter queueget the Date when message was put on dead-letter queueget the Time when message was put on dead-letter queueintget the Reason message arrived on dead-letter queueGet the structure identifier; the value will be MQDLH_STRUC_IDintGet the Structure version numberintvoidnextCharacterSet(int value) Sets the CCSID of the next header or message content.intvoidnextEncoding(int value) Sets the numeric encoding of the next header or message content.voidnextFormat(String value) Sets the format of the next header or message content.voidsetCodedCharSetId(int value) Set the Character set identifier of data that follows.voidsetDestQMgrName(String value) set the Name of original destination queue managervoidsetDestQName(String value) set the Name of original destination queuevoidsetEncoding(int value) Set the numeric encoding of the data that follows.voidset the Format name of data that follows MQDLHvoidsetPutApplName(String value) set the Name of application that put message on dead-letter queuevoidsetPutApplType(int value) set the Type of application that put message on dead-letter queuevoidsetPutDate(String value) set the Date when message was put on dead-letter queuevoidsetPutTime(String value) set the Time when message was put on dead-letter queuevoidsetReason(int value) set the Reason message arrived on dead-letter queueMethods inherited from class com.ibm.mq.headers.internal.Header
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, writeMethods inherited from class com.ibm.mq.jmqi.JmqiObject
getJmqiEnvironment
-
Field Details
-
SIZE
public static final int SIZESize of the header in bytes- See Also:
-
-
Constructor Details
-
MQDLH
public MQDLH()Constructs an MQDLH instance with default field values. -
MQDLH
Constructs an MQDLH instance populated from an MQMessage.- Parameters:
message- the message to read- Throws:
MQDataException- if the message content does not yield a valid MQDLH stuctureIOException- if there is a problem reading the message content
-
MQDLH
Constructs an MQDLH instance populated from a DataInput source.- Parameters:
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 message- Throws:
MQDataException- if the message content does not yield a valid MQDLH stuctureIOException- if there is a problem reading the message content
-
-
Method Details
-
getStrucId
Get the structure identifier; the value will be MQDLH_STRUC_ID- Returns:
- the structure identifier
-
getVersion
public int getVersion()Get the Structure version number- Returns:
- the Structure version number
-
getReason
public int getReason()get the Reason message arrived on dead-letter queue- Returns:
- the Reason message arrived on dead-letter queue
-
setReason
public void setReason(int value) set the Reason message arrived on dead-letter queue- Parameters:
value- the Reason message arrived on dead-letter queue
-
getDestQName
get the Name of original destination queue- Returns:
- the Name of original destination queue
-
setDestQName
set the Name of original destination queue- Parameters:
value- the Name of original destination queue
-
getDestQMgrName
get the Name of original destination queue manager- Returns:
- the Name of original destination queue manager
-
setDestQMgrName
set the Name of original destination queue manager- Parameters:
value- the Name of original destination queue manager
-
getEncoding
public int getEncoding()Get the numeric encoding of the data that follows.- Returns:
- the numeric encoding. A combination of MQENC_* values.
-
setEncoding
public void setEncoding(int value) Set the numeric encoding of the data that follows.- Parameters:
value- the numeric encoding. A combination of MQENC_* values.
-
getCodedCharSetId
public int getCodedCharSetId()Get the Character set identifier of data that follows.- Returns:
- the Character set identifier.
-
setCodedCharSetId
public void setCodedCharSetId(int value) Set the Character set identifier of data that follows.- Parameters:
value- the Character set identifier.
-
getFormat
get the Format name of data that follows MQDLH- Returns:
- the Format name of data that follows MQDLH
-
setFormat
set the Format name of data that follows MQDLH- Parameters:
value- the Format name of data that follows MQDLH
-
getPutApplType
public int getPutApplType()get the Type of application that put message on dead-letter queue- Returns:
- the Type of application that put message on dead-letter queue
-
setPutApplType
public void setPutApplType(int value) set the Type of application that put message on dead-letter queue- Parameters:
value- the Type of application that put message on dead-letter queue
-
getPutApplName
get the Name of application that put message on dead-letter queue- Returns:
- the Name of application that put message on dead-letter queue
-
setPutApplName
set the Name of application that put message on dead-letter queue- Parameters:
value- the Name of application that put message on dead-letter queue
-
getPutDate
get the Date when message was put on dead-letter queue- Returns:
- the Date when message was put on dead-letter queue
-
setPutDate
set the Date when message was put on dead-letter queue- Parameters:
value- the Date when message was put on dead-letter queue
-
getPutTime
get the Time when message was put on dead-letter queue- Returns:
- the Time when message was put on dead-letter queue
-
setPutTime
set the Time when message was put on dead-letter queue- Parameters:
value- the Time when message was put on dead-letter queue
-
nextEncoding
public int nextEncoding()- Specified by:
nextEncodingin interfaceMQChainable- Returns:
- the numeric encoding of the next header or message content.
- See Also:
-
nextEncoding
public void nextEncoding(int value) Description copied from interface:MQChainableSets the numeric encoding of the next header or message content.- Specified by:
nextEncodingin interfaceMQChainable- Parameters:
value- numeric encoding- See Also:
-
nextCharacterSet
public int nextCharacterSet()- Specified by:
nextCharacterSetin interfaceMQChainable- Returns:
- the CCSID of the next header or message content.
- See Also:
-
nextCharacterSet
public void nextCharacterSet(int value) Description copied from interface:MQChainableSets the CCSID of the next header or message content.- Specified by:
nextCharacterSetin interfaceMQChainable- Parameters:
value- character set- See Also:
-
nextFormat
- Specified by:
nextFormatin interfaceMQChainable- Returns:
- the format of the next header or message content.
- See Also:
-
nextFormat
Description copied from interface:MQChainableSets the format of the next header or message content.- Specified by:
nextFormatin interfaceMQChainable- Parameters:
value- format of the header or message content- See Also:
-
format
- Specified by:
formatin interfaceMQChainable- Returns:
- the format associated with this header object or message content.
- See Also:
-