Class MQChannelExit
java.lang.Object
com.ibm.mq.jmqi.JmqiObject
com.ibm.mq.MQChannelExit
public class MQChannelExit
extends com.ibm.mq.jmqi.JmqiObject
This class defines context information passed to the send, receive and security exits when they
are invoked. The exit must set the exitResponse member variable to indicate what action the
IBM MQ Client for Java should take next.
Note: This class is not used when connecting directly to IBM MQ in bindings mode.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintCapabilities of the queue manager.intThe technique currently being used to compress header data.intThe technique currently being used to compress message data.intThe type of exit that has been invoked.intThe reason for invoking the exit.intSet by the exit to indicate the action that the IBM MQ Client for Java should take next.byte[]A storage area available for the exit to use.intThe negotiated Format and Protocol (FAP) level.intThe maximum length for a simple transmission to a queue manager.static final intDeprecated.static final intDeprecated.useMQConstants.MQXCC_OKinstead.static final intDeprecated.useMQConstants.MQXCC_SEND_AND_REQUEST_SEC_MSGinstead.static final intDeprecated.useMQConstants.MQXCC_SEND_SEC_MSGinstead.static final intDeprecated.useMQConstants.MQXCC_SUPPRESS_EXITinstead.static final intDeprecated.useMQConstants.MQXCC_SUPPRESS_FUNCTIONinstead.static final intDeprecated.useMQConstants.MQXR_INITinstead.static final intDeprecated.useMQConstants.MQXR_INTI_SECinstead.static final intDeprecated.useMQConstants.MQXR_SEC_MSGinstead.static final intDeprecated.useMQConstants.MQXR_TERMinstead.static final intDeprecated.useMQConstants.MQXR_XMITinstead.static final intDeprecated.useMQConstants.MQXT_CHANNEL_RCV_EXITinstead.static final intDeprecated.useMQConstants.MQXT_CHANNEL_SEC_EXITinstead.static final intDeprecated.useMQConstants.MQXT_CHANNEL_SEND_EXITinstead.Fields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMQCSP()Gets anMQConnectionSecurityParametersobject.voidSets anMQConnectionSecurityParametersobject.Methods inherited from class com.ibm.mq.jmqi.JmqiObject
getJmqiEnvironment
-
Field Details
-
MQXT_CHANNEL_SEC_EXIT
public static final int MQXT_CHANNEL_SEC_EXITDeprecated.useMQConstants.MQXT_CHANNEL_SEC_EXITinstead.- See Also:
-
MQXT_CHANNEL_SEND_EXIT
public static final int MQXT_CHANNEL_SEND_EXITDeprecated.useMQConstants.MQXT_CHANNEL_SEND_EXITinstead.- See Also:
-
MQXT_CHANNEL_RCV_EXIT
public static final int MQXT_CHANNEL_RCV_EXITDeprecated.useMQConstants.MQXT_CHANNEL_RCV_EXITinstead.- See Also:
-
MQXR_INIT
-
MQXR_TERM
-
MQXR_XMIT
-
MQXR_SEC_MSG
-
MQXR_INIT_SEC
-
MQXCC_OK
-
MQXCC_SUPPRESS_FUNCTION
public static final int MQXCC_SUPPRESS_FUNCTIONDeprecated.useMQConstants.MQXCC_SUPPRESS_FUNCTIONinstead.- See Also:
-
MQXCC_SEND_AND_REQUEST_SEC_MSG
public static final int MQXCC_SEND_AND_REQUEST_SEC_MSGDeprecated.useMQConstants.MQXCC_SEND_AND_REQUEST_SEC_MSGinstead.- See Also:
-
MQXCC_SEND_SEC_MSG
public static final int MQXCC_SEND_SEC_MSGDeprecated.useMQConstants.MQXCC_SEND_SEC_MSGinstead.- See Also:
-
MQXCC_SUPPRESS_EXIT
public static final int MQXCC_SUPPRESS_EXITDeprecated.useMQConstants.MQXCC_SUPPRESS_EXITinstead.- See Also:
-
MQXCC_CLOSE_CHANNEL
public static final int MQXCC_CLOSE_CHANNELDeprecated.useMQConstants.MQXCC_CLOSE_CHANNELinstead.- See Also:
-
exitID
public int exitIDThe type of exit that has been invoked. Possible values are: -
exitReason
public int exitReasonThe reason for invoking the exit. Possible values are: -
exitResponse
public int exitResponseSet by the exit to indicate the action that the IBM MQ Client for Java should take next. Valid values are: -
maxSegmentLength
public int maxSegmentLengthThe maximum length for a simple transmission to a queue manager. If the exit returns data which is to be sent to the queue manager, the length of the returned data must not exceed this value. -
exitUserArea
public byte[] exitUserAreaA storage area available for the exit to use. Any data placed here is preserved by the IBM MQ Client for Java across exit invocations with the same exitID; that is, each send, receive or security exit has its own independent user area. -
fapLevel
public int fapLevelThe negotiated Format and Protocol (FAP) level. The default level is 9. -
capabilityFlags
public int capabilityFlagsCapabilities of the queue manager.Only the MQConstants.MQCF_DIST_LISTS flag is supported.
-
CurHdrCompression
public int CurHdrCompressionThe technique currently being used to compress header data. -
CurMsgCompression
public int CurMsgCompressionThe technique currently being used to compress message data.
-
-
Constructor Details
-
MQChannelExit
public MQChannelExit()Package constructor
-
-
Method Details
-
setMQCSP
Sets anMQConnectionSecurityParametersobject. If this object is created and set when a security exit is invoked withMQConstants.MQXR_SEC_PARMSthen any supplied information will be sent to the Queue Manager.This applies to channel security exits only.
- Parameters:
mqcsp- the MQConnectionSecurityParameters object.
-
getMQCSP
Gets anMQConnectionSecurityParametersobject. If no such object has been created, this method will return null.- Returns:
- the MQConnectionSecurityParameters object.
-
MQConstants.MQXCC_CLOSE_CHANNELinstead.