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

public class MQDLH extends com.ibm.mq.headers.internal.Header implements MQChainable
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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Size of the header in bytes

    Fields inherited from class com.ibm.mq.headers.internal.Header

    DEFAULT_CCSID, DEFAULT_ENCODING, delegate

    Fields inherited from class com.ibm.mq.jmqi.JmqiObject

    COMP_JM, COMP_JN, COMP_JO
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs an MQDLH instance with default field values.
    MQDLH(DataInput message)
    Constructs an MQDLH instance populated from an MQMessage.
    MQDLH(DataInput message, int encoding, int characterSet)
    Constructs an MQDLH instance populated from a DataInput source.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
    Get the Character set identifier of data that follows.
    get the Name of original destination queue manager
    get the Name of original destination queue
    int
    Get the numeric encoding of the data that follows.
    get the Format name of data that follows MQDLH
    get the Name of application that put message on dead-letter queue
    int
    get the Type of application that put message on dead-letter queue
    get the Date when message was put on dead-letter queue
    get the Time when message was put on dead-letter queue
    int
    get the Reason message arrived on dead-letter queue
    Get the structure identifier; the value will be MQDLH_STRUC_ID
    int
    Get the Structure version number
    int
     
    void
    nextCharacterSet(int value)
    Sets the CCSID of the next header or message content.
    int
     
    void
    nextEncoding(int value)
    Sets the numeric encoding of the next header or message content.
     
    void
    Sets the format of the next header or message content.
    void
    setCodedCharSetId(int value)
    Set the Character set identifier of data that follows.
    void
    set the Name of original destination queue manager
    void
    set the Name of original destination queue
    void
    setEncoding(int value)
    Set the numeric encoding of the data that follows.
    void
    set the Format name of data that follows MQDLH
    void
    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
    set the Date when message was put on dead-letter queue
    void
    set the Time when message was put on dead-letter queue
    void
    setReason(int value)
    set the Reason message arrived on dead-letter queue

    Methods 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, write

    Methods inherited from class com.ibm.mq.jmqi.JmqiObject

    getJmqiEnvironment

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • MQDLH

      public MQDLH()
      Constructs an MQDLH instance with default field values.
    • MQDLH

      public MQDLH(DataInput message) throws MQDataException, IOException
      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 stucture
      IOException - if there is a problem reading the message content
    • MQDLH

      public MQDLH(DataInput message, int encoding, int characterSet) throws MQDataException, IOException
      Constructs an MQDLH instance populated from a DataInput source.
      Parameters:
      message - the MQMessage or other DataInput source to read
      encoding - the initial numeric encoding of the data in the message
      characterSet - the initial CCSID of the data in the message
      Throws:
      MQDataException - if the message content does not yield a valid MQDLH stucture
      IOException - if there is a problem reading the message content
  • Method Details

    • getStrucId

      public String 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

      public String getDestQName()
      get the Name of original destination queue
      Returns:
      the Name of original destination queue
    • setDestQName

      public void setDestQName(String value)
      set the Name of original destination queue
      Parameters:
      value - the Name of original destination queue
    • getDestQMgrName

      public String getDestQMgrName()
      get the Name of original destination queue manager
      Returns:
      the Name of original destination queue manager
    • setDestQMgrName

      public void setDestQMgrName(String value)
      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

      public String getFormat()
      get the Format name of data that follows MQDLH
      Returns:
      the Format name of data that follows MQDLH
    • setFormat

      public void setFormat(String value)
      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

      public String 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

      public void setPutApplName(String value)
      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

      public String getPutDate()
      get the Date when message was put on dead-letter queue
      Returns:
      the Date when message was put on dead-letter queue
    • setPutDate

      public void setPutDate(String value)
      set the Date when message was put on dead-letter queue
      Parameters:
      value - the Date when message was put on dead-letter queue
    • getPutTime

      public String getPutTime()
      get the Time when message was put on dead-letter queue
      Returns:
      the Time when message was put on dead-letter queue
    • setPutTime

      public void setPutTime(String value)
      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:
      nextEncoding in interface MQChainable
      Returns:
      the numeric encoding of the next header or message content.
      See Also:
    • nextEncoding

      public void nextEncoding(int value)
      Description copied from interface: MQChainable
      Sets the numeric encoding of the next header or message content.
      Specified by:
      nextEncoding in interface MQChainable
      Parameters:
      value - numeric encoding
      See Also:
    • nextCharacterSet

      public int nextCharacterSet()
      Specified by:
      nextCharacterSet in interface MQChainable
      Returns:
      the CCSID of the next header or message content.
      See Also:
    • nextCharacterSet

      public void nextCharacterSet(int value)
      Description copied from interface: MQChainable
      Sets the CCSID of the next header or message content.
      Specified by:
      nextCharacterSet in interface MQChainable
      Parameters:
      value - character set
      See Also:
    • nextFormat

      public String nextFormat()
      Specified by:
      nextFormat in interface MQChainable
      Returns:
      the format of the next header or message content.
      See Also:
    • nextFormat

      public void nextFormat(String value)
      Description copied from interface: MQChainable
      Sets the format of the next header or message content.
      Specified by:
      nextFormat in interface MQChainable
      Parameters:
      value - format of the header or message content
      See Also:
    • format

      public String format()
      Specified by:
      format in interface MQChainable
      Returns:
      the format associated with this header object or message content.
      See Also: