public class MQCIH extends com.ibm.mq.headers.internal.Header implements MQChainable
struct tagMQCIH {
MQCHAR4 StrucId; // Structure identifier
MQLONG Version; // Structure version number
MQLONG StrucLength; // Length of MQCIH structure
MQLONG Encoding; // Reserved
MQLONG CodedCharSetId; // Reserved
MQCHAR8 Format; // MQ format name of data that follows MQCIH
MQLONG Flags; // Flags
MQLONG ReturnCode; // Return code from bridge
MQLONG CompCode; // MQ completion code or CICS EIBRESP
MQLONG Reason; // MQ reason or feedback code, or CICS EIBRESP2
MQLONG UOWControl; // Unit-of-work control
MQLONG GetWaitInterval; // Wait interval for MQGET call issued by bridge task
MQLONG LinkType; // Link type
MQLONG OutputDataLength; // Output COMMAREA data length
MQLONG FacilityKeepTime; // Bridge facility release time
MQLONG ADSDescriptor; // Send/receive ADS descriptor
MQLONG ConversationalTask; // Whether task can be conversational
MQLONG TaskEndStatus; // Status at end of task
MQBYTE8 Facility; // Bridge facility token
MQCHAR4 Function; // MQ call name or CICS EIBFN function
MQCHAR4 AbendCode; // Abend code
MQCHAR8 Authenticator; // Password or passticket
MQCHAR8 Reserved1; // Reserved
MQCHAR8 ReplyToFormat; // MQ format name of reply message
MQCHAR4 RemoteSysId; // Remote CICS system id to use
MQCHAR4 RemoteTransId; // CICS RTRANSID to use
MQCHAR4 TransactionId; // Transaction to attach
MQCHAR4 FacilityLike; // Terminal emulated attributes
MQCHAR4 AttentionId; // AID key
MQCHAR4 StartCode; // Transaction start code
MQCHAR4 CancelCode; // Abend transaction code
MQCHAR4 NextTransactionId; // Next transaction to attach
MQCHAR8 Reserved2; // Reserved
MQCHAR8 Reserved3; // Reserved
// Ver:1
MQLONG CursorPosition; // Cursor position
MQLONG ErrorOffset; // Offset of error in message
MQLONG InputItem; // Reserved
MQLONG Reserved4; // Reserved
// Ver:2
};
MQHeader.Field| Constructor and Description |
|---|
MQCIH()
Constructs an MQCIH instance with default field values.
|
MQCIH(java.io.DataInput message)
Constructs an MQCIH instance populated from an MQMessage.
|
MQCIH(java.io.DataInput message,
int encoding,
int characterSet)
Constructs an MQCIH instance populated from a DataInput source.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format() |
java.lang.String |
getAbendCode()
get the Abend code
|
int |
getADSDescriptor()
get the Send/receive ADS descriptor
|
java.lang.String |
getAttentionId()
get the AID key
|
java.lang.String |
getAuthenticator()
get the Password or passticket
|
java.lang.String |
getCancelCode()
get the Abend transaction code
|
int |
getCodedCharSetId()
Get the Character set identifier of data that follows.
|
int |
getCompCode()
get the completion code
|
int |
getConversationalTask()
get the indication whether task can be conversational
|
int |
getCursorPosition()
get the Cursor position
|
int |
getEncoding()
Get the numeric encoding of the data that follows.
|
int |
getErrorOffset()
get the Offset of error in message
|
byte[] |
getFacility()
get the Bridge facility token
|
int |
getFacilityKeepTime()
get the Bridge facility release time
|
java.lang.String |
getFacilityLike()
get the Terminal emulated attributes
|
int |
getFlags()
get the Flags
|
java.lang.String |
getFormat()
get the MQ format name of data that follows MQCIH
|
java.lang.String |
getFunction()
get the MQ call name or CICS EIBFN function
|
int |
getGetWaitInterval()
get the wait interval
|
int |
getInputItem()
get the value of the InputItem field
|
int |
getLinkType()
get the link type
|
java.lang.String |
getNextTransactionId()
get the Next transaction to attach
|
int |
getOutputDataLength()
get the Output COMMAREA data length
|
int |
getReason()
get the reason code
|
java.lang.String |
getRemoteSysId()
get the Remote CICS system id to use
|
java.lang.String |
getRemoteTransId()
get the CICS RTRANSID to use
|
java.lang.String |
getReplyToFormat()
set the MQ format name of reply message
|
int |
getReturnCode()
get the return code
|
java.lang.String |
getStartCode()
get the Transaction start code
|
java.lang.String |
getStrucId()
Get the structure identifier; the value will be MQCIH_STRUC_ID
|
int |
getStrucLength()
Get the length of the structure.
|
int |
getTaskEndStatus()
get the status at end of task
|
java.lang.String |
getTransactionId()
get the Transaction to attach
|
int |
getUOWControl()
get the Unit-of-work control value
|
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 |
setAbendCode(java.lang.String value)
set the Abend code
|
void |
setADSDescriptor(int value)
set the Send/receive ADS descriptor
|
void |
setAttentionId(java.lang.String value)
set the AID key
|
void |
setAuthenticator(java.lang.String value)
set the Password or passticket
|
void |
setCancelCode(java.lang.String value)
set the Abend transaction code
|
void |
setCodedCharSetId(int value)
Set the Character set identifier of data that follows.
|
void |
setCompCode(int value)
set the completion code
|
void |
setConversationalTask(int value)
set the indication whether task can be conversational
|
void |
setCursorPosition(int value)
set the Cursor position
|
void |
setEncoding(int value)
Set the numeric encoding of the data that follows.
|
void |
setErrorOffset(int value)
set the Offset of error in message
|
void |
setFacility(byte[] value)
set the Bridge facility token
|
void |
setFacilityKeepTime(int value)
set the Bridge facility release time
|
void |
setFacilityLike(java.lang.String value)
set the Terminal emulated attributes
|
void |
setFlags(int value)
set the Flags
|
void |
setFormat(java.lang.String value)
set the MQ format name of data that follows MQCIH
|
void |
setFunction(java.lang.String value)
set the MQ call name or CICS EIBFN function
|
void |
setGetWaitInterval(int value)
set the wait interval
|
void |
setInputItem(int value)
set the value of the InputItem field
|
void |
setLinkType(int value)
set the link type
|
void |
setNextTransactionId(java.lang.String value)
set the Next transaction to attach
|
void |
setOutputDataLength(int value)
set the Output COMMAREA data length
|
void |
setReason(int value)
set the reason code
|
void |
setRemoteSysId(java.lang.String value)
set the Remote CICS system id to use
|
void |
setRemoteTransId(java.lang.String value)
set the CICS RTRANSID to use
|
void |
setReplyToFormat(java.lang.String value)
set the MQ format name of reply message
|
void |
setReturnCode(int value)
set the return code
|
void |
setStartCode(java.lang.String value)
set the Transaction start code
|
void |
setTaskEndStatus(int value)
set the status at end of task
|
void |
setTransactionId(java.lang.String value)
set the Transaction to attach
|
void |
setUOWControl(int value)
set the Unit-of-work control value
|
void |
setVersion(int value)
Set the Structure version number
|
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 MQCIH()
public MQCIH(java.io.DataInput message)
throws MQDataException,
java.io.IOException
message - the message to readMQDataException - if the message content does not yield a valid MQCIH stucturejava.io.IOException - if there is a problem reading the message contentpublic MQCIH(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 MQCIH stucturejava.io.IOException - if there is a problem reading the message contentpublic java.lang.String getStrucId()
public int getVersion()
public void setVersion(int value)
value - the Structure version numberpublic 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 MQ format namepublic int getFlags()
public void setFlags(int value)
value - the Flags value to setpublic int getReturnCode()
public void setReturnCode(int value)
value - the return codepublic int getCompCode()
public void setCompCode(int value)
value - the completion codepublic int getReason()
public void setReason(int value)
value - the reason codepublic int getUOWControl()
public void setUOWControl(int value)
value - the Unit-of-work control valuepublic int getGetWaitInterval()
public void setGetWaitInterval(int value)
value - the wait intervalpublic int getLinkType()
public void setLinkType(int value)
value - the link typepublic int getOutputDataLength()
public void setOutputDataLength(int value)
value - the Output COMMAREA data lengthpublic int getFacilityKeepTime()
public void setFacilityKeepTime(int value)
value - the Bridge facility release timepublic int getADSDescriptor()
public void setADSDescriptor(int value)
value - the Send/receive ADS descriptorpublic int getConversationalTask()
public void setConversationalTask(int value)
value - the indication whether task can be conversationalpublic int getTaskEndStatus()
public void setTaskEndStatus(int value)
value - the status at end of taskpublic byte[] getFacility()
public void setFacility(byte[] value)
value - the Bridge facility tokenpublic java.lang.String getFunction()
public void setFunction(java.lang.String value)
value - the MQ call name or CICS EIBFN functionpublic java.lang.String getAbendCode()
public void setAbendCode(java.lang.String value)
value - the Abend codepublic java.lang.String getAuthenticator()
public void setAuthenticator(java.lang.String value)
value - the Password or passticketpublic java.lang.String getReplyToFormat()
public void setReplyToFormat(java.lang.String value)
value - the MQ format name of reply messagepublic java.lang.String getRemoteSysId()
public void setRemoteSysId(java.lang.String value)
value - the Remote CICS system id to usepublic java.lang.String getRemoteTransId()
public void setRemoteTransId(java.lang.String value)
value - the CICS RTRANSID to usepublic java.lang.String getTransactionId()
public void setTransactionId(java.lang.String value)
value - the Transaction to attachpublic java.lang.String getFacilityLike()
public void setFacilityLike(java.lang.String value)
value - the Terminal emulated attributespublic java.lang.String getAttentionId()
public void setAttentionId(java.lang.String value)
value - the AID keypublic java.lang.String getStartCode()
public void setStartCode(java.lang.String value)
value - the Transaction start codepublic java.lang.String getCancelCode()
public void setCancelCode(java.lang.String value)
value - the Abend transaction codepublic java.lang.String getNextTransactionId()
public void setNextTransactionId(java.lang.String value)
value - the Next transaction to attachpublic int getCursorPosition()
public void setCursorPosition(int value)
value - the Cursor positionpublic int getErrorOffset()
public void setErrorOffset(int value)
value - public int getInputItem()
public void setInputItem(int value)
value - the value of the InputItem fieldpublic 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()