com.ibm.mq.headers

Class MQXQH

  • java.lang.Object
    • com.ibm.mq.jmqi.JmqiObject
      • com.ibm.mq.headers.internal.Header
        • com.ibm.mq.headers.MQXQH
  • All Implemented Interfaces:
    MQChainable, MQData, MQHeader


    public class MQXQH
    extends com.ibm.mq.headers.internal.Header
    implements MQChainable
    MQXQH (transmission queue header) header class.
       struct tagMQXQH 
       {
                    MQCHAR4   StrucId;         // Structure identifier
                    MQLONG    Version;         // Structure version number
                    MQCHAR48  RemoteQName;     // Name of destination queue
                    MQCHAR48  RemoteQMgrName;  // Name of destination queue manager
                    MQMD1     MsgDesc;         // Original message descriptor
       };
     
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int SIZE
      Size of an MQXQH structure 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 and Description
      MQXQH()
      Constructs an MQXQH instance with default field values.
      MQXQH(java.io.DataInput message)
      Constructs an MQXQH instance populated from an MQMessage.
      MQXQH(java.io.DataInput message, int encoding, int characterSet)
      Constructs an MQXQH instance populated from a DataInput source.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String format() 
      MQMD1 getMsgDesc()
      get the message descriptor
      java.lang.String getRemoteQMgrName()
      set the remote Queue Manager Name
      java.lang.String getRemoteQName()
      get the remote Queue Name
      java.lang.String getStrucId()
      Get the structure identifier; the value will be CMQC.MQXQH_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 setMsgDesc(MQMD1 value)
      set the message descriptor
      void setRemoteQMgrName(java.lang.String value)
      get the remote Queue Manager Name
      void setRemoteQName(java.lang.String value)
      set the remote Queue Name
      int size() 
      • 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, 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 Detail

    • Constructor Detail

      • MQXQH

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

        public MQXQH(java.io.DataInput message)
              throws MQDataException,
                     java.io.IOException
        Constructs an MQXQH instance populated from an MQMessage.
        Parameters:
        message - the message to read
        Throws:
        MQDataException - if the message content does not yield a valid MQXQH stucture
        java.io.IOException - if there is a problem reading the message content
      • MQXQH

        public MQXQH(java.io.DataInput message,
                     int encoding,
                     int characterSet)
              throws MQDataException,
                     java.io.IOException
        Constructs an MQXQH 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 MQXQH stucture
        java.io.IOException - if there is a problem reading the message content
    • Method Detail

      • getStrucId

        public java.lang.String getStrucId()
        Get the structure identifier; the value will be CMQC.MQXQH_STRUC_ID
        Returns:
        the structure identifier
      • getVersion

        public int getVersion()
        Get the Structure version number
        Returns:
        the Structure version number
      • getRemoteQName

        public java.lang.String getRemoteQName()
        get the remote Queue Name
        Returns:
        the remote Queue Name
      • setRemoteQName

        public void setRemoteQName(java.lang.String value)
        set the remote Queue Name
        Parameters:
        value - the remote Queue Name
      • getRemoteQMgrName

        public java.lang.String getRemoteQMgrName()
        set the remote Queue Manager Name
        Returns:
        the remote Queue Manager Name
      • setRemoteQMgrName

        public void setRemoteQMgrName(java.lang.String value)
        get the remote Queue Manager Name
        Parameters:
        value - the remote Queue Manager Name
      • getMsgDesc

        public MQMD1 getMsgDesc()
        get the message descriptor
        Returns:
        the message descriptor
      • setMsgDesc

        public void setMsgDesc(MQMD1 value)
        set the message descriptor
        Parameters:
        value -
      • size

        public int size()
        Specified by:
        size in interface MQData
        Overrides:
        size in class com.ibm.mq.headers.internal.Header
        Returns:
        the size in bytes occupied by this data element in a message.
        See Also:
        Header.size()
      • format

        public java.lang.String format()
        Specified by:
        format in interface MQChainable
        Returns:
        the format associated with this header object or message content.
        See Also:
        MQChainable.format()
(c) Copyright IBM Corp. 2008, 2016. All Rights Reserved.