Package com.ibm.mq.headers
Class MQWIH
java.lang.Object
com.ibm.mq.jmqi.JmqiObject
com.ibm.mq.headers.internal.Header
com.ibm.mq.headers.MQWIH
public class MQWIH
extends com.ibm.mq.headers.internal.Header
MQWIH (work information header) header class.
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
};
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ibm.mq.headers.MQHeader
MQHeader.Field -
Field Summary
Fields 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 TypeMethodDescriptionintGet the Character set identifier of data that follows.intGet the numeric encoding of the data that follows.intgetFlags()gets the Flagsgets the Format name of data that follows MQWIHbyte[]gets the message tokengets the service namegets the service step nameGet the structure identifier; the value will be MQWIH_STRUC_IDintGet the length of the structure.intGet the Structure version numbervoidsetCodedCharSetId(int value) Set the Character set identifier of data that follows.voidsetEncoding(int value) Set the numeric encoding of the data that follows.voidsetFlags(int value) sets the Flagsvoidsets the Format name of data that follows MQWIHvoidsetMsgToken(byte[] value) sets the message tokenvoidsetServiceName(String value) sets the service namevoidsetServiceStep(String value) sets the service step nameMethods 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, size, store, store, toString, type, validate, write, writeMethods inherited from class com.ibm.mq.jmqi.JmqiObject
getJmqiEnvironment
-
Constructor Details
-
MQWIH
public MQWIH()Constructs an MQWIH instance with default field values. -
MQWIH
Constructs an MQWIH instance populated from an MQMessage.- Parameters:
message- the message to read- Throws:
MQDataException- if the message content does not yield a valid MQWIH stuctureIOException- if there is a problem reading the message content
-
MQWIH
Constructs an MQWIH 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 MQWIH stuctureIOException- if there is a problem reading the message content
-
-
Method Details
-
getStrucId
Get the structure identifier; the value will be MQWIH_STRUC_ID- Returns:
- the structure identifier
-
getVersion
public int getVersion()Get the Structure version number- Returns:
- the Structure version number
-
getStrucLength
public int getStrucLength()Get the length of the structure.- Returns:
- the structure length.
-
getEncoding
public int getEncoding()Get the numeric encoding of the data that follows.- Returns:
- the numeric encoding. A combination of MQENC_* values.
-
setEncoding
public void setEncoding(int value) Set the numeric encoding of the data that follows.- Parameters:
value- the numeric encoding. A combination of MQENC_* values.
-
getCodedCharSetId
public int getCodedCharSetId()Get the Character set identifier of data that follows.- Returns:
- the Character set identifier.
-
setCodedCharSetId
public void setCodedCharSetId(int value) Set the Character set identifier of data that follows.- Parameters:
value- the Character set identifier.
-
getFormat
gets the Format name of data that follows MQWIH- Returns:
- the Format name of data that follows MQWIH
-
setFormat
sets the Format name of data that follows MQWIH- Parameters:
value- the Format name of data that follows MQWIH
-
getFlags
public int getFlags()gets the Flags- Returns:
- the Flags
-
setFlags
public void setFlags(int value) sets the Flags- Parameters:
value- the Flags
-
getServiceName
gets the service name- Returns:
- the service name
-
setServiceName
sets the service name- Parameters:
value- the service name
-
getServiceStep
gets the service step name- Returns:
- the service step name
-
setServiceStep
sets the service step name- Parameters:
value- the service step name
-
getMsgToken
public byte[] getMsgToken()gets the message token- Returns:
- the message token
-
setMsgToken
public void setMsgToken(byte[] value) sets the message token- Parameters:
value- the message token
-