public class MQWIH
extends com.ibm.mq.headers.internal.Header
struct tagMQWIH {
MQCHAR4 StrucId; // Structure identifier
MQLONG Version; // Structure version number
MQLONG StrucLength; // Length of MQWIH structure
MQLONG Encoding; // Numeric encoding of data that follows MQWIH
MQLONG CodedCharSetId; // Character-set identifier of data that follows MQWIH
MQCHAR8 Format; // Format name of data that follows MQWIH
MQLONG Flags; // Flags
MQCHAR32 ServiceName; // Service name
MQCHAR8 ServiceStep; // Service step name
MQBYTE16 MsgToken; // Message token
MQCHAR32 Reserved; // Reserved
};
MQHeader.Field| Constructor and Description |
|---|
MQWIH()
Constructs an MQWIH instance with default field values.
|
MQWIH(java.io.DataInput message)
Constructs an MQWIH instance populated from an MQMessage.
|
MQWIH(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQWIH instance populated from a DataInput source.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCodedCharSetId()
Get the Character set identifier of data that follows.
|
int |
getEncoding()
Get the numeric encoding of the data that follows.
|
int |
getFlags()
gets the Flags
|
java.lang.String |
getFormat()
gets the Format name of data that follows MQWIH
|
byte[] |
getMsgToken()
gets the message token
|
java.lang.String |
getServiceName()
gets the service name
|
java.lang.String |
getServiceStep()
gets the service step name
|
java.lang.String |
getStrucId()
Get the structure identifier; the value will be MQWIH_STRUC_ID
|
int |
getStrucLength()
Get the length of the structure.
|
int |
getVersion()
Get the Structure version number
|
void |
setCodedCharSetId(int value)
Set the Character set identifier of data that follows.
|
void |
setEncoding(int value)
Set the numeric encoding of the data that follows.
|
void |
setFlags(int value)
sets the Flags
|
void |
setFormat(java.lang.String value)
sets the Format name of data that follows MQWIH
|
void |
setMsgToken(byte[] value)
sets the message token
|
void |
setServiceName(java.lang.String value)
sets the service name
|
void |
setServiceStep(java.lang.String value)
sets the service step name
|
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, writepublic MQWIH()
public MQWIH(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQWIH stucturejava.io.IOException - if there is a problem reading the message contentpublic MQWIH(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 MQWIH stucturejava.io.IOException - if there is a problem reading the message contentpublic java.lang.String getStrucId()
public int getVersion()
public int getStrucLength()
public int getEncoding()
public void setEncoding(int value)
value - the numeric encoding. A combination of MQENC_* values.public int getCodedCharSetId()
public void setCodedCharSetId(int value)
value - the Character set identifier.public java.lang.String getFormat()
public void setFormat(java.lang.String value)
value - the Format name of data that follows MQWIHpublic int getFlags()
public void setFlags(int value)
value - the Flagspublic java.lang.String getServiceName()
public void setServiceName(java.lang.String value)
value - the service namepublic java.lang.String getServiceStep()
public void setServiceStep(java.lang.String value)
value - the service step namepublic byte[] getMsgToken()
public void setMsgToken(byte[] value)
value - the message token