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 };
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.mq.headers.MQHeader
MQHeader.Field
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZESize of an MQXQH structure in bytes
-
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.Stringformat()MQMD1getMsgDesc()get the message descriptorjava.lang.StringgetRemoteQMgrName()set the remote Queue Manager Namejava.lang.StringgetRemoteQName()get the remote Queue Namejava.lang.StringgetStrucId()Get the structure identifier; the value will beCMQC.MQXQH_STRUC_IDintgetVersion()Get the Structure version numberintnextCharacterSet()voidnextCharacterSet(int value)Sets the CCSID of the next header or message content.intnextEncoding()voidnextEncoding(int value)Sets the numeric encoding of the next header or message content.java.lang.StringnextFormat()voidnextFormat(java.lang.String value)Sets the format of the next header or message content.voidsetMsgDesc(MQMD1 value)set the message descriptorvoidsetRemoteQMgrName(java.lang.String value)get the remote Queue Manager NamevoidsetRemoteQName(java.lang.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, write
-
-
-
-
Field Detail
-
SIZE
public static final int SIZE
Size of an MQXQH structure in bytes- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MQXQH
public MQXQH()
Constructs an MQXQH instance with default field values.
-
MQXQH
public MQXQH(java.io.DataInput message) throws MQDataException, java.io.IOExceptionConstructs 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 stucturejava.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.IOExceptionConstructs 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 stucturejava.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 beCMQC.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()
-
nextEncoding
public int nextEncoding()
- Specified by:
nextEncodingin interfaceMQChainable- Returns:
- the numeric encoding of the next header or message content.
- See Also:
MQChainable.nextEncoding()
-
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- See Also:
MQChainable.nextEncoding(int)
-
nextCharacterSet
public int nextCharacterSet()
- Specified by:
nextCharacterSetin interfaceMQChainable- Returns:
- the CCSID of the next header or message content.
- See Also:
MQChainable.nextCharacterSet()
-
nextCharacterSet
public void nextCharacterSet(int value)
Description copied from interface:MQChainableSets the CCSID of the next header or message content.- Specified by:
nextCharacterSetin interfaceMQChainable- See Also:
MQChainable.nextCharacterSet(int)
-
nextFormat
public java.lang.String nextFormat()
- Specified by:
nextFormatin interfaceMQChainable- Returns:
- the format of the next header or message content.
- See Also:
MQChainable.nextFormat()
-
nextFormat
public void nextFormat(java.lang.String value)
Description copied from interface:MQChainableSets the format of the next header or message content.- Specified by:
nextFormatin interfaceMQChainable- See Also:
MQChainable.nextFormat(java.lang.String)
-
format
public java.lang.String format()
- Specified by:
formatin interfaceMQChainable- Returns:
- the format associated with this header object or message content.
- See Also:
MQChainable.format()
-
-