com.ibm.mq.headers

Class MQIIH

  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.MQIIH
All implemented interfaces:
MQChainable, MQData, MQHeader

  1. public class MQIIH
  2. extends com.ibm.mq.headers.internal.Header
  3. implements MQChainable
MQIIH header class.
    struct tagMQIIH {
                MQCHAR4   StrucId;         // Structure identifier
                MQLONG    Version;         // Structure version number
                MQLONG    StrucLength;     // Length of MQIIH structure
                MQLONG    Encoding;        // Reserved
                MQLONG    CodedCharSetId;  // Reserved
                MQCHAR8   Format;          // MQ format name of data that follows MQIIH
                MQLONG    Flags;           // Flags
                MQCHAR8   LTermOverride;   // Logical terminal override
                MQCHAR8   MFSMapName;      // Message format services map name
                MQCHAR8   ReplyToFormat;   // MQ format name of reply message
                MQCHAR8   Authenticator;   // RACF password or passticket
                MQBYTE16  TranInstanceId;  // Transaction instance identifier
                MQCHAR    TranState;       // Transaction state
                MQCHAR    CommitMode;      // Commit mode
                MQCHAR    SecurityScope;   // Security scope
                MQCHAR    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
Fields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO

Constructor Summary

Constructor and Description
MQIIH()
Constructs an MQIIH instance with default field values.
MQIIH(java.io.DataInput message)
Constructs an MQIIH instance populated from an MQMessage.
MQIIH(java.io.DataInput message,int encoding,int characterSet)
Constructs an MQIIH instance populated from a DataInput source.

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
format()
  1. java.lang.String
getAuthenticator()
gets the RACF password or passticket
  1. int
getCodedCharSetId()
Get the Character set identifier of data that follows.
  1. char
getCommitMode()
gets the Commit mode
  1. int
getEncoding()
Get the numeric encoding of the data that follows.
  1. int
getFlags()
gets the Flags
  1. java.lang.String
getFormat()
gets the MQ format name of data that follows MQIIH
  1. java.lang.String
getLTermOverride()
gets the Logical terminal override
  1. java.lang.String
getMFSMapName()
gets the Message format services map name
  1. java.lang.String
getReplyToFormat()
gets the MQ format name of reply message
  1. char
getSecurityScope()
gets the Security scope
  1. java.lang.String
getStrucId()
Get the structure identifier; the value will be MQIIH_STRUC_ID
  1. int
getStrucLength()
Get the length of the structure.
  1. byte[]
getTranInstanceId()
gets the Transaction instance identifier
  1. char
getTranState()
gets the Transaction state
  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
setAuthenticator(java.lang.String value)
sets the RACF password or passticket
  1. void
setCodedCharSetId(int value)
Set the Character set identifier of data that follows.
  1. void
setCommitMode(char value)
sets the Commit mode
  1. void
setEncoding(int value)
Set the numeric encoding of the data that follows.
  1. void
setFlags(int value)
sets the Flags
  1. void
setFormat(java.lang.String value)
sets the MQ format name of data that follows MQIIH
  1. void
setLTermOverride(java.lang.String value)
sets the Logical terminal override
  1. void
setMFSMapName(java.lang.String value)
sets the Message format services map name
  1. void
setReplyToFormat(java.lang.String value)
sets the MQ format name of reply message
  1. void
setSecurityScope(char value)
sets the Security scope
  1. void
setTranInstanceId(byte[] value)
sets the Transaction instance identifier
  1. void
setTranState(char value)
sets the Transaction state
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

MQIIH

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

MQIIH

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

MQIIH

  1. public MQIIH(java.io.DataInput message,
  2. int encoding,
  3. int characterSet)
  4. throws MQDataException
  5. java.io.IOException
Constructs an MQIIH 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 MQIIH 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 MQIIH_STRUC_ID
Returns:
the structure identifier

getVersion

  1. public int getVersion()
Get the Structure version number
Returns:
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( )
gets the MQ format name of data that follows MQIIH
Returns:
the MQ format name of data that follows MQIIH

setFormat

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

getFlags

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

setFlags

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

getLTermOverride

  1. public java.lang.String getLTermOverride( )
gets the Logical terminal override
Returns:
the Logical terminal override

setLTermOverride

  1. public void setLTermOverride(java.lang.String value)
sets the Logical terminal override
Parameters:
value - the Logical terminal override

getMFSMapName

  1. public java.lang.String getMFSMapName( )
gets the Message format services map name
Returns:
the Message format services map name

setMFSMapName

  1. public void setMFSMapName(java.lang.String value)
sets the Message format services map name
Parameters:
value - the Message format services map name

getReplyToFormat

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

setReplyToFormat

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

getAuthenticator

  1. public java.lang.String getAuthenticator( )
gets the RACF password or passticket
Returns:
the RACF password or passticket

setAuthenticator

  1. public void setAuthenticator(java.lang.String value)
sets the RACF password or passticket
Parameters:
value - the RACF password or passticket

getTranInstanceId

  1. public byte[] getTranInstanceId( )
gets the Transaction instance identifier
Returns:
the Transaction instance identifier

setTranInstanceId

  1. public void setTranInstanceId(byte[] value)
sets the Transaction instance identifier
Parameters:
value - the Transaction instance identifier

getTranState

  1. public char getTranState()
gets the Transaction state
Returns:
the Transaction state

setTranState

  1. public void setTranState(char value)
sets the Transaction state
Parameters:
value - the Transaction state

getCommitMode

  1. public char getCommitMode()
gets the Commit mode
Returns:
the Commit mode

setCommitMode

  1. public void setCommitMode(char value)
sets the Commit mode
Parameters:
value - the Commit mode

getSecurityScope

  1. public char getSecurityScope()
gets the Security scope
Returns:
the Security scope

setSecurityScope

  1. public void setSecurityScope(char value)
sets the Security scope
Parameters:
value - the Security scope

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
exclude

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

nextCharacterSet

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

nextCharacterSet

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

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

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

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