com.ibm.mq.headers

Class MQCIH

  1. java.lang.Object
  2. extended bycom.ibm.mq.jmqi.JmqiObject
  3. extended bycom.ibm.mq.headers.internal.Header
  4. extended bycom.ibm.mq.headers.MQCIH
All implemented interfaces:
MQChainable, MQData, MQHeader

  1. public class MQCIH
  2. extends com.ibm.mq.headers.internal.Header
  3. implements MQChainable
MQCIH (CICS bridge header) header class.
    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
   };
 

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
Fields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO

Constructor Summary

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.

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
format()
  1. java.lang.String
getAbendCode()
get the Abend code
  1. int
getADSDescriptor()
get the Send/receive ADS descriptor
  1. java.lang.String
getAttentionId()
get the AID key
  1. java.lang.String
getAuthenticator()
get the Password or passticket
  1. java.lang.String
getCancelCode()
get the Abend transaction code
  1. int
getCodedCharSetId()
Get the Character set identifier of data that follows.
  1. int
getCompCode()
get the completion code
  1. int
getConversationalTask()
get the indication whether task can be conversational
  1. int
getCursorPosition()
get the Cursor position
  1. int
getEncoding()
Get the numeric encoding of the data that follows.
  1. int
getErrorOffset()
get the Offset of error in message
  1. byte[]
getFacility()
get the Bridge facility token
  1. int
getFacilityKeepTime()
get the Bridge facility release time
  1. java.lang.String
getFacilityLike()
get the Terminal emulated attributes
  1. int
getFlags()
get the Flags
  1. java.lang.String
getFormat()
get the MQ format name of data that follows MQCIH
  1. java.lang.String
getFunction()
get the MQ call name or CICS EIBFN function
  1. int
getGetWaitInterval()
get the wait interval
  1. int
getInputItem()
get the value of the InputItem field
  1. int
getLinkType()
get the link type
  1. java.lang.String
getNextTransactionId()
get the Next transaction to attach
  1. int
getOutputDataLength()
get the Output COMMAREA data length
  1. int
getReason()
get the reason code
  1. java.lang.String
getRemoteSysId()
get the Remote CICS system id to use
  1. java.lang.String
getRemoteTransId()
get the CICS RTRANSID to use
  1. java.lang.String
getReplyToFormat()
set the MQ format name of reply message
  1. int
getReturnCode()
get the return code
  1. java.lang.String
getStartCode()
get the Transaction start code
  1. java.lang.String
getStrucId()
Get the structure identifier; the value will be MQCIH_STRUC_ID
  1. int
getStrucLength()
Get the length of the structure.
  1. int
getTaskEndStatus()
get the status at end of task
  1. java.lang.String
getTransactionId()
get the Transaction to attach
  1. int
getUOWControl()
get the Unit-of-work control value
  1. int
getVersion()
Get the Structure version number
  1. int
nextCharacterSet()
  1. void
nextCharacterSet(int value)
  1. int
nextEncoding()
  1. void
nextEncoding(int value)
  1. java.lang.String
nextFormat()
  1. void
nextFormat(java.lang.String value)
  1. void
setAbendCode(java.lang.String value)
set the Abend code
  1. void
setADSDescriptor(int value)
set the Send/receive ADS descriptor
  1. void
setAttentionId(java.lang.String value)
set the AID key
  1. void
setAuthenticator(java.lang.String value)
set the Password or passticket
  1. void
setCancelCode(java.lang.String value)
set the Abend transaction code
  1. void
setCodedCharSetId(int value)
Set the Character set identifier of data that follows.
  1. void
setCompCode(int value)
set the completion code
  1. void
setConversationalTask(int value)
set the indication whether task can be conversational
  1. void
setCursorPosition(int value)
set the Cursor position
  1. void
setEncoding(int value)
Set the numeric encoding of the data that follows.
  1. void
setErrorOffset(int value)
set the Offset of error in message
  1. void
setFacility(byte[] value)
set the Bridge facility token
  1. void
setFacilityKeepTime(int value)
set the Bridge facility release time
  1. void
setFacilityLike(java.lang.String value)
set the Terminal emulated attributes
  1. void
setFlags(int value)
set the Flags
  1. void
setFormat(java.lang.String value)
set the MQ format name of data that follows MQCIH
  1. void
setFunction(java.lang.String value)
set the MQ call name or CICS EIBFN function
  1. void
setGetWaitInterval(int value)
set the wait interval
  1. void
setInputItem(int value)
set the value of the InputItem field
  1. void
setLinkType(int value)
set the link type
  1. void
setNextTransactionId(java.lang.String value)
set the Next transaction to attach
  1. void
setOutputDataLength(int value)
set the Output COMMAREA data length
  1. void
setReason(int value)
set the reason code
  1. void
setRemoteSysId(java.lang.String value)
set the Remote CICS system id to use
  1. void
setRemoteTransId(java.lang.String value)
set the CICS RTRANSID to use
  1. void
setReplyToFormat(java.lang.String value)
set the MQ format name of reply message
  1. void
setReturnCode(int value)
set the return code
  1. void
setStartCode(java.lang.String value)
set the Transaction start code
  1. void
setTaskEndStatus(int value)
set the status at end of task
  1. void
setTransactionId(java.lang.String value)
set the Transaction to attach
  1. void
setUOWControl(int value)
set the Unit-of-work control value
  1. void
setVersion(int value)
Set the Structure version number
Methods 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, write
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

MQCIH

  1. public MQCIH()
Constructs an MQCIH instance with default field values.

MQCIH

  1. public MQCIH(java.io.DataInput message)
  2. throws MQDataException
  3. java.io.IOException
Constructs an MQCIH instance populated from an MQMessage.
Parameters:
message - the message to read
Throws:
MQDataException - if the message content does not yield a valid MQCIH stucture
java.io.IOException - if there is a problem reading the message content

MQCIH

  1. public MQCIH(java.io.DataInput message,
  2. int encoding,
  3. int characterSet)
  4. throws MQDataException
  5. java.io.IOException
Constructs an MQCIH instance populated from a DataInput source.
Parameters:
message - the MQMessage or other DataInput source to read
encoding - the initial numeric encoding of the data in the message
characterSet - the initial CCSID of the data in the message
Throws:
MQDataException - if the message content does not yield a valid MQCIH stucture
java.io.IOException - if there is a problem reading the message content

Method Detail

getStrucId

  1. public java.lang.String getStrucId( )
Get the structure identifier; the value will be MQCIH_STRUC_ID
Returns:
the structure identifier

getVersion

  1. public int getVersion()
Get the Structure version number
Returns:
the Structure version number

setVersion

  1. public void setVersion(int value)
Set the Structure version number
Parameters:
value - the Structure version number

getStrucLength

  1. public int getStrucLength()
Get the length of the structure.
Returns:
the structure length.

getEncoding

  1. public int getEncoding()
Get the numeric encoding of the data that follows.
Returns:
the numeric encoding. A combination of MQENC_* values.

setEncoding

  1. 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

  1. public int getCodedCharSetId()
Get the Character set identifier of data that follows.
Returns:
the Character set identifier.

setCodedCharSetId

  1. public void setCodedCharSetId(int value)
Set the Character set identifier of data that follows.
Parameters:
value - the Character set identifier.

getFormat

  1. public java.lang.String getFormat( )
get the MQ format name of data that follows MQCIH
Returns:
MQ format name

setFormat

  1. public void setFormat(java.lang.String value)
set the MQ format name of data that follows MQCIH
Parameters:
value - the MQ format name

getFlags

  1. public int getFlags()
get the Flags
Returns:
the Flags

setFlags

  1. public void setFlags(int value)
set the Flags
Parameters:
value - the Flags value to set

getReturnCode

  1. public int getReturnCode()
get the return code
Returns:
the return code

setReturnCode

  1. public void setReturnCode(int value)
set the return code
Parameters:
value - the return code

getCompCode

  1. public int getCompCode()
get the completion code
Returns:
the completion code

setCompCode

  1. public void setCompCode(int value)
set the completion code
Parameters:
value - the completion code

getReason

  1. public int getReason()
get the reason code
Returns:
the reason code

setReason

  1. public void setReason(int value)
set the reason code
Parameters:
value - the reason code

getUOWControl

  1. public int getUOWControl()
get the Unit-of-work control value
Returns:
the Unit-of-work control value

setUOWControl

  1. public void setUOWControl(int value)
set the Unit-of-work control value
Parameters:
value - the Unit-of-work control value

getGetWaitInterval

  1. public int getGetWaitInterval()
get the wait interval
Returns:
the wait interval

setGetWaitInterval

  1. public void setGetWaitInterval( int value)
set the wait interval
Parameters:
value - the wait interval

getLinkType

  1. public int getLinkType()
get the link type
Returns:
link type

setLinkType

  1. public void setLinkType(int value)
set the link type
Parameters:
value - the link type

getOutputDataLength

  1. public int getOutputDataLength( )
get the Output COMMAREA data length
Returns:
the Output COMMAREA data length

setOutputDataLength

  1. public void setOutputDataLength( int value)
set the Output COMMAREA data length
Parameters:
value - the Output COMMAREA data length

getFacilityKeepTime

  1. public int getFacilityKeepTime( )
get the Bridge facility release time
Returns:
the Bridge facility release time

setFacilityKeepTime

  1. public void setFacilityKeepTime( int value)
set the Bridge facility release time
Parameters:
value - the Bridge facility release time

getADSDescriptor

  1. public int getADSDescriptor()
get the Send/receive ADS descriptor
Returns:
the Send/receive ADS descriptor

setADSDescriptor

  1. public void setADSDescriptor(int value)
set the Send/receive ADS descriptor
Parameters:
value - the Send/receive ADS descriptor

getConversationalTask

  1. public int getConversationalTask( )
get the indication whether task can be conversational
Returns:
the indication whether task can be conversational

setConversationalTask

  1. public void setConversationalTask( int value)
set the indication whether task can be conversational
Parameters:
value - the indication whether task can be conversational

getTaskEndStatus

  1. public int getTaskEndStatus()
get the status at end of task
Returns:
the status at end of task

setTaskEndStatus

  1. public void setTaskEndStatus(int value)
set the status at end of task
Parameters:
value - the status at end of task

getFacility

  1. public byte[] getFacility()
get the Bridge facility token
Returns:
the Bridge facility token

setFacility

  1. public void setFacility(byte[] value)
set the Bridge facility token
Parameters:
value - the Bridge facility token

getFunction

  1. public java.lang.String getFunction( )
get the MQ call name or CICS EIBFN function
Returns:
the MQ call name or CICS EIBFN function

setFunction

  1. public void setFunction(java.lang.String value)
set the MQ call name or CICS EIBFN function
Parameters:
value - the MQ call name or CICS EIBFN function

getAbendCode

  1. public java.lang.String getAbendCode( )
get the Abend code
Returns:
the Abend code

setAbendCode

  1. public void setAbendCode(java.lang.String value)
set the Abend code
Parameters:
value - the Abend code

getAuthenticator

  1. public java.lang.String getAuthenticator( )
get the Password or passticket
Returns:
the Password or passticket

setAuthenticator

  1. public void setAuthenticator(java.lang.String value)
set the Password or passticket
Parameters:
value - the Password or passticket

getReplyToFormat

  1. public java.lang.String getReplyToFormat( )
set the MQ format name of reply message
Returns:
the MQ format name of reply message

setReplyToFormat

  1. public void setReplyToFormat(java.lang.String value)
set the MQ format name of reply message
Parameters:
value - the MQ format name of reply message

getRemoteSysId

  1. public java.lang.String getRemoteSysId( )
get the Remote CICS system id to use
Returns:
the Remote CICS system id to use

setRemoteSysId

  1. public void setRemoteSysId(java.lang.String value)
set the Remote CICS system id to use
Parameters:
value - the Remote CICS system id to use

getRemoteTransId

  1. public java.lang.String getRemoteTransId( )
get the CICS RTRANSID to use
Returns:
the CICS RTRANSID to use

setRemoteTransId

  1. public void setRemoteTransId(java.lang.String value)
set the CICS RTRANSID to use
Parameters:
value - the CICS RTRANSID to use

getTransactionId

  1. public java.lang.String getTransactionId( )
get the Transaction to attach
Returns:
the Transaction to attach

setTransactionId

  1. public void setTransactionId(java.lang.String value)
set the Transaction to attach
Parameters:
value - the Transaction to attach

getFacilityLike

  1. public java.lang.String getFacilityLike( )
get the Terminal emulated attributes
Returns:
the Terminal emulated attributes

setFacilityLike

  1. public void setFacilityLike(java.lang.String value)
set the Terminal emulated attributes
Parameters:
value - the Terminal emulated attributes

getAttentionId

  1. public java.lang.String getAttentionId( )
get the AID key
Returns:
the AID key

setAttentionId

  1. public void setAttentionId(java.lang.String value)
set the AID key
Parameters:
value - the AID key

getStartCode

  1. public java.lang.String getStartCode( )
get the Transaction start code
Returns:
the Transaction start code

setStartCode

  1. public void setStartCode(java.lang.String value)
set the Transaction start code
Parameters:
value - the Transaction start code

getCancelCode

  1. public java.lang.String getCancelCode( )
get the Abend transaction code
Returns:
the Abend transaction code

setCancelCode

  1. public void setCancelCode(java.lang.String value)
set the Abend transaction code
Parameters:
value - the Abend transaction code

getNextTransactionId

  1. public java.lang.String getNextTransactionId( )
get the Next transaction to attach
Returns:
the Next transaction to attach

setNextTransactionId

  1. public void setNextTransactionId( java.lang.String value)
set the Next transaction to attach
Parameters:
value - the Next transaction to attach

getCursorPosition

  1. public int getCursorPosition()
get the Cursor position
Returns:
the Cursor position

setCursorPosition

  1. public void setCursorPosition(int value)
set the Cursor position
Parameters:
value - the Cursor position

getErrorOffset

  1. public int getErrorOffset()
get the Offset of error in message
Returns:
the Offset of error in message

setErrorOffset

  1. public void setErrorOffset(int value)
set the Offset of error in message
Parameters:
value -

getInputItem

  1. public int getInputItem()
get the value of the InputItem field
Returns:
the value of the InputItem field

setInputItem

  1. public void setInputItem(int value)
set the value of the InputItem field
Parameters:
value - the value of the InputItem field

nextEncoding

  1. public int nextEncoding()
Description copied from interface: MQChainable
Returns the numeric encoding of the next header or message content.
Specified by:
nextEncoding in interface MQChainable
See Also:

nextEncoding

  1. public void nextEncoding(int value)
Description copied from interface: MQChainable
Sets the numeric encoding of the next header or message content.
Specified by:
nextEncoding in interface MQChainable
See Also:

nextCharacterSet

  1. public int nextCharacterSet()
Description copied from interface: MQChainable
Returns the CCSID of the next header or message content.
Specified by:
See Also:

nextCharacterSet

  1. public void nextCharacterSet(int value)
Description copied from interface: MQChainable
Sets the CCSID of the next header or message content.
Specified by:
See Also:

nextFormat

  1. public java.lang.String nextFormat( )
Description copied from interface: MQChainable
Returns the format of the next header or message content.
Specified by:
nextFormat in interface MQChainable
See Also:

nextFormat

  1. public void nextFormat(java.lang.String value)
Description copied from interface: MQChainable
Sets the format of the next header or message content.
Specified by:
nextFormat in interface MQChainable
See Also:

format

  1. public java.lang.String format( )
Description copied from interface: MQChainable
Returns the format associated with this header object or message content.
Specified by:
format in interface MQChainable
See Also: