public class MQEPH extends com.ibm.mq.headers.internal.Header implements MQChainable, PCFContent
struct tagMQEPH {
MQCHAR4 StrucId; // Structure identifier
MQLONG Version; // Structure version number
MQLONG StrucLength; // Total length of MQEPH including MQCFHameter structures that follow
MQLONG Encoding; // Numeric encoding of data that follows last PCF parameter structure
MQLONG CodedCharSetId; // Character set identifier of data that follows last PCF parameter structure
MQCHAR8 Format; // Format name of data that follows last PCF parameter structure
MQLONG Flags; // Flags
MQCFH PCFHeader; // Programmable Command Format Header
}
MQHeader.Field| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE
size of an MQEPH header in bytes
|
| Constructor and Description |
|---|
MQEPH()
Constructs an MQEPH instance with default field values.
|
MQEPH(java.io.DataInput message)
Constructs an MQEPH instance populated from an DataInput.
|
MQEPH(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQEPH instance populated from a DataInput source.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFilterParameter(int parameter,
int operator,
byte[] value)
Adds a bytes string filter parameter to the group.
|
void |
addFilterParameter(int parameter,
int operator,
int value)
Adds an integer filter parameter to the group.
|
void |
addFilterParameter(int parameter,
int operator,
java.lang.String value)
Adds a string filter parameter to the group.
|
void |
addParameter(int parameter,
byte[] value)
Adds a byte array parameter to the group.
|
void |
addParameter(int parameter,
int value)
Adds an integer parameter to the group.
|
void |
addParameter(int parameter,
int[] values)
Adds an integer list parameter to the group.
|
void |
addParameter(int parameter,
long value)
Adds a 64-bit integer parameter to the group.
|
void |
addParameter(int parameter,
long[] values)
Adds a 64-bit integer list parameter to the group.
|
void |
addParameter(int parameter,
java.lang.String value)
Adds a string parameter to the group.
|
void |
addParameter(int parameter,
java.lang.String[] values)
Adds a string list parameter to the group.
|
void |
addParameter(PCFParameter parameter)
Adds a PCFParameter to the group.
|
boolean |
equals(java.lang.Object obj)
Returns true when invoked with another MQCFGR instance with the same parameter, parameterCount,
and parameter children.
|
java.lang.String |
format() |
byte[] |
getBytesParameterValue(int parameter)
Returns the value of the specified byte array parameter (MQCFBS).
|
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
|
java.lang.String |
getFormat()
get the Format name of data that follows last PCF parameter structure
|
long |
getInt64ParameterValue(int parameter)
Returns the value of the specified integer parameter (MQCFIN64) as an integer.
|
long[] |
getIntList64ParameterValue(int parameter)
Returns the value of the specified integer list parameter (MQCFIL64) as an array of integers.
|
int[] |
getIntListParameterValue(int parameter)
Returns the value of the specified integer list parameter (MQCFIL) as an array of integers.
|
int |
getIntParameterValue(int parameter)
Returns the value of the specified integer parameter (MQCFIN) as an integer.
|
PCFParameter |
getParameter(int parameter)
Returns the PCFParameter structure for the specified parameter, or null if the parameter is not
found.
|
int |
getParameterCount()
Returns the number of parameter structures in the group.
|
java.util.Enumeration |
getParameters()
Returns an enumeration of the parameters in the group.
|
java.lang.Object |
getParameterValue(int parameter)
Returns the value of the specified parameter, or null if the parameter is not found.
|
MQCFH |
getPCFHeader()
get the PCF header
|
java.lang.String[] |
getStringListParameterValue(int parameter)
Returns the value of the specified string list parameter (MQCFSL) as an array of strings.
|
java.lang.String |
getStringParameterValue(int parameter)
Returns the value of the specified string parameter (MQCFST) as a string.
|
java.lang.String |
getStrucId()
Get the structure identifier; the value will be MQEPH_STRUC_ID
|
int |
getVersion()
Get the Structure version number
|
int |
nextCharacterSet()
get the CCSID of the next message
|
void |
nextCharacterSet(int value)
set the CCSID of the next message
|
int |
nextEncoding()
get the encoding of the next message
|
void |
nextEncoding(int value)
set the encoding of the next message
|
java.lang.String |
nextFormat()
get the format of the next message
|
void |
nextFormat(java.lang.String value)
set the format of the next message
|
int |
read(java.io.DataInput message,
int encoding,
int characterSet)
Populates this MQEPH object with data from the specified message
|
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
|
void |
setFormat(java.lang.String value)
set the Format name of data that follows last PCF parameter structure
|
void |
setParameterCount(int value)
Sets the MQEPH parameter count.
|
void |
setPCFHeader(MQCFH value)
set the PCF header
|
java.lang.String |
toString()
return a string representation of this header
|
int |
write(java.io.DataOutput message,
int encoding,
int characterSet)
writes this header to the specified message
|
characterSet, encoding, fields, getBytesValue, getCharValue, getCharValue, getIntValue, getJmqiEnv, getStringValue, getValue, headerType, read, read, setBytesValue, setCharValue, setCharValue, setIntValue, setStringValue, setValue, size, store, store, type, validate, writepublic static final int SIZE
public MQEPH()
public MQEPH(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQEPH stucturejava.io.IOException - if there is a problem reading the message contentpublic MQEPH(java.io.DataInput message,
int encoding,
int characterSet)
throws MQDataException,
java.io.IOException
message - the DataInput 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 MQEPH stucturejava.io.IOException - if there is a problem reading the message contentpublic int read(java.io.DataInput message,
int encoding,
int characterSet)
throws MQDataException,
java.io.IOException
read in interface MQDataread in class com.ibm.mq.headers.internal.Headermessage - the messageencoding - the encoding (big/little-endian)characterSet - the CCSIDMQDataExceptionjava.io.IOExceptionpublic int write(java.io.DataOutput message,
int encoding,
int characterSet)
throws java.io.IOException
public java.lang.String getStrucId()
public int getVersion()
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 last PCF parameter structurepublic int getFlags()
public void setFlags(int value)
value - the Flagspublic MQCFH getPCFHeader()
public void setPCFHeader(MQCFH value)
value - the headerpublic int nextEncoding()
nextEncoding in interface MQChainablepublic void nextEncoding(int value)
nextEncoding in interface MQChainablevalue - the encodingpublic int nextCharacterSet()
nextCharacterSet in interface MQChainablepublic void nextCharacterSet(int value)
nextCharacterSet in interface MQChainablevalue - the CCSIDpublic java.lang.String nextFormat()
nextFormat in interface MQChainablepublic void nextFormat(java.lang.String value)
nextFormat in interface MQChainablevalue - the formatpublic java.lang.String format()
format in interface MQChainableMQChainable.format()public void addParameter(PCFParameter parameter)
PCFContentaddParameter in interface PCFContentparameter - the parameter structure to add (MQCFIN, MQCFIL, MQCFST and so on)PCFContent.addParameter(com.ibm.mq.headers.pcf.PCFParameter)public void addParameter(int parameter,
int value)
PCFContentaddParameter in interface PCFContentparameter - the integer parameter identifiervalue - the integer valuePCFContent.addParameter(int, int)public void addParameter(int parameter,
int[] values)
PCFContentaddParameter in interface PCFContentparameter - the integer list parameter identifiervalues - the array of integer valuesPCFContent.addParameter(int, int[])public void addParameter(int parameter,
long value)
PCFContentaddParameter in interface PCFContentparameter - the integer parameter identifiervalue - the integer valuePCFContent.addParameter(int, long)public void addParameter(int parameter,
long[] values)
PCFContentaddParameter in interface PCFContentparameter - the integer list parameter identifiervalues - the array of integer valuesPCFContent.addParameter(int, long[])public void addParameter(int parameter,
java.lang.String value)
PCFContentaddParameter in interface PCFContentparameter - the string parameter identifiervalue - the string valuePCFContent.addParameter(int, java.lang.String)public void addParameter(int parameter,
java.lang.String[] values)
PCFContentaddParameter in interface PCFContentparameter - the string list parameter identifiervalues - the array of string valuesPCFContent.addParameter(int, java.lang.String[])public void addParameter(int parameter,
byte[] value)
PCFContentaddParameter in interface PCFContentparameter - the string list parameter identifiervalue - the array of string valuesPCFContent.addParameter(int, byte[])public void addFilterParameter(int parameter,
int operator,
int value)
PCFContentaddFilterParameter in interface PCFContentparameter - the filter parameter identifieroperator - one of the MQCFOP_* filter operator constantsvalue - the filter valuePCFContent.addFilterParameter(int, int, int)public void addFilterParameter(int parameter,
int operator,
java.lang.String value)
PCFContentaddFilterParameter in interface PCFContentparameter - the filter parameter identifieroperator - one of the MQCFOP_* filter operator constantsvalue - the filter valuePCFContent.addFilterParameter(int, int, java.lang.String)public void addFilterParameter(int parameter,
int operator,
byte[] value)
PCFContentaddFilterParameter in interface PCFContentparameter - the filter parameter identifieroperator - one of the MQCFOP_* filter operator constantsvalue - the filter valuePCFContent.addFilterParameter(int, int, byte[])public int getParameterCount()
PCFContentgetParameterCount in interface PCFContentPCFContent.getParameterCount()public void setParameterCount(int value)
value - the integer value as an Integer objectpublic java.util.Enumeration getParameters()
PCFContentgetParameters in interface PCFContentPCFContent.getParameters()public PCFParameter getParameter(int parameter)
PCFContentgetParameter in interface PCFContentPCFContent.getParameter(int)public java.lang.Object getParameterValue(int parameter)
PCFContentgetParameterValue in interface PCFContentPCFContent.getParameterValue(int)public int getIntParameterValue(int parameter)
throws PCFException
PCFContentgetIntParameterValue in interface PCFContentparameter - the integer parameter identifierPCFException - if the specified parameter does not exist in the message (the reason
code given is MQRCCF_CFIN_PARM_ID_ERROR)PCFContent.getIntParameterValue(int)public int[] getIntListParameterValue(int parameter)
throws PCFException
PCFContentgetIntListParameterValue in interface PCFContentparameter - the integer list parameter identifierPCFException - if the specified parameter does not exist in the group (the reason code
given is MQRCCF_CFIL_PARM_ID_ERROR)PCFContent.getIntListParameterValue(int)public long getInt64ParameterValue(int parameter)
throws PCFException
PCFContentgetInt64ParameterValue in interface PCFContentparameter - the integer parameter identifierPCFException - if the specified parameter does not exist in the message (the reason
code given is MQRCCF_CFIN_PARM_ID_ERROR)PCFContent.getInt64ParameterValue(int)public long[] getIntList64ParameterValue(int parameter)
throws PCFException
PCFContentgetIntList64ParameterValue in interface PCFContentparameter - the integer list parameter identifierPCFException - if the specified parameter does not exist in the group (the reason code
given is MQRCCF_CFIL_PARM_ID_ERROR)PCFContent.getIntList64ParameterValue(int)public java.lang.String getStringParameterValue(int parameter)
throws PCFException
PCFContentgetStringParameterValue in interface PCFContentparameter - the string parameter identifierPCFException - if the specified parameter does not exist in the group (the reason code
given is MQRCCF_CFST_PARM_ID_ERROR)PCFContent.getStringParameterValue(int)public java.lang.String[] getStringListParameterValue(int parameter)
throws PCFException
PCFContentgetStringListParameterValue in interface PCFContentparameter - the string list parameter identifierPCFException - if the specified parameter does not exist in the group (the reason code
given is MQRCCF_CFSL_PARM_ID_ERROR; no more specific error code is defined)PCFContent.getStringListParameterValue(int)public byte[] getBytesParameterValue(int parameter)
throws PCFException
PCFContentgetBytesParameterValue in interface PCFContentparameter - the byte array parameter identifierPCFException - if the specified parameter does not exist in the group (the reason code
given is MQRCCF_CFBS_PARM_ID_ERROR)PCFContent.getBytesParameterValue(int)public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class com.ibm.mq.headers.internal.Header