public class MQRFH extends com.ibm.mq.headers.internal.Header implements com.ibm.mq.headers.internal.CachingHeader, MQChainable
struct tagMQRFH {
MQCHAR4 StrucId; /* Structure identifier
MQLONG Version; /* Structure version number
MQLONG StrucLength; /* Total length of MQRFH including NameValueString
MQLONG Encoding; /* Numeric encoding of data that follows NameValueString
MQLONG CodedCharSetId; /* Character set identifier of data that follows NameValueString
MQCHAR8 Format; /* Format name of data that follows NameValueString
MQLONG Flags; /* Flags
};
| Modifier and Type | Class and Description |
|---|---|
static interface |
MQRFH.NameValuePair |
MQHeader.Field| Constructor and Description |
|---|
MQRFH()
Constructs an MQRFH instance with default field values.
|
MQRFH(java.io.DataInput message)
Constructs an MQRFH instance populated from an MQMessage.
|
MQRFH(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQRFH instance populated from a DataInput source.
|
MQRFH(java.lang.String nameValueString) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format() |
int |
getCodedCharSetId()
Get the Character set identifier of data that follows.
|
int |
getEncoding()
Get the numeric encoding of the data that follows.
|
int |
getFlags()
get the flags from the RFH header
|
java.lang.String |
getFormat()
Get the format name of data that follows NameValueString
|
java.lang.String |
getNamedValue(java.lang.String name) |
java.lang.String |
getNameValueData()
get the NameValue data
|
java.lang.String |
getStrucId()
Get the structure identifier; the value will be MQRFH_STRUC_ID
|
int |
getStrucLength()
Get the length of the structure.
|
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 |
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)
set the flags on the RFH header
|
void |
setFormat(java.lang.String value)
Set the format name of data that follows NameValueString
|
void |
setNameValueString(java.lang.String value)
set the NameValue data
|
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 MQRFH(java.lang.String nameValueString)
nameValueString - Constructs an MQRFH with default values and a NameValueString, which must consist of zero or
more whitespace-separated name value pairs. The strucLength field is updated automatically.public MQRFH()
public MQRFH(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQRFH stucturejava.io.IOException - if there is a problem reading the message contentpublic MQRFH(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 MQRFH stucturejava.io.IOException - if there is a problem reading the message contentpublic java.lang.String getNamedValue(java.lang.String name)
throws java.io.IOException
name - java.io.IOExceptionpublic int size()
public 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 namepublic int getFlags()
public void setFlags(int value)
value - the flagspublic java.lang.String getNameValueData()
public void setNameValueString(java.lang.String value)
value - the NameValue datapublic 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()