public class MQXQH extends com.ibm.mq.headers.internal.Header implements MQChainable
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
};
MQHeader.Field| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
Size of an MQXQH structure in bytes
|
| 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.
|
| 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() |
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, writepublic static final int SIZE
public MQXQH()
public MQXQH(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQXQH stucturejava.io.IOException - if there is a problem reading the message contentpublic MQXQH(java.io.DataInput message,
int encoding,
int characterSet)
throws MQDataException,
java.io.IOException
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 messageMQDataException - if the message content does not yield a valid MQXQH stucturejava.io.IOException - if there is a problem reading the message contentpublic java.lang.String getStrucId()
CMQC.MQXQH_STRUC_IDpublic int getVersion()
public java.lang.String getRemoteQName()
public void setRemoteQName(java.lang.String value)
value - the remote Queue Namepublic java.lang.String getRemoteQMgrName()
public void setRemoteQMgrName(java.lang.String value)
value - the remote Queue Manager Namepublic MQMD1 getMsgDesc()
public void setMsgDesc(MQMD1 value)
value - public int size()
public int nextEncoding()
nextEncoding in interface MQChainableMQChainable.nextEncoding()public void nextEncoding(int value)
MQChainablenextEncoding in interface MQChainableMQChainable.nextEncoding(int)public int nextCharacterSet()
nextCharacterSet in interface MQChainableMQChainable.nextCharacterSet()public void nextCharacterSet(int value)
MQChainablenextCharacterSet in interface MQChainableMQChainable.nextCharacterSet(int)public java.lang.String nextFormat()
nextFormat in interface MQChainableMQChainable.nextFormat()public void nextFormat(java.lang.String value)
MQChainablenextFormat in interface MQChainableMQChainable.nextFormat(java.lang.String)public java.lang.String format()
format in interface MQChainableMQChainable.format()