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
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
};
-
Nested Class Summary
Nested classes/interfaces inherited from interface 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()get the message descriptorset the remote Queue Manager Nameget the remote Queue NameGet the structure identifier; the value will beCMQC.MQXQH_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.voidsetMsgDesc(MQMD1 value) set the message descriptorvoidsetRemoteQMgrName(String value) get the remote Queue Manager NamevoidsetRemoteQName(String value) set the remote Queue Nameintsize()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, writeMethods inherited from class com.ibm.mq.jmqi.JmqiObject
getJmqiEnvironment
-
Field Details
-
SIZE
public static final int SIZESize of an MQXQH structure in bytes- See Also:
-
-
Constructor Details
-
MQXQH
public MQXQH()Constructs an MQXQH instance with default field values. -
MQXQH
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 stuctureIOException- if there is a problem reading the message content
-
MQXQH
Constructs an MQXQH 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 MQXQH stuctureIOException- if there is a problem reading the message content
-
-
Method Details
-
getStrucId
Get the structure identifier; the value will beCMQC.MQXQH_STRUC_ID- Returns:
- the structure identifier
-
getVersion
public int getVersion()Get the Structure version number- Returns:
- the Structure version number
-
getRemoteQName
-
setRemoteQName
set the remote Queue Name- Parameters:
value- the remote Queue Name
-
getRemoteQMgrName
set the remote Queue Manager Name- Returns:
- the remote Queue Manager Name
-
setRemoteQMgrName
get the remote Queue Manager Name- Parameters:
value- the remote Queue Manager Name
-
getMsgDesc
-
setMsgDesc
-
size
-
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:
-