Package com.trafficparrot.sdk.ibmmq
Enum Class IbmMqMessageFormat
- All Implemented Interfaces:
Serializable,Comparable<IbmMqMessageFormat>,Constable
The MQ message formats a response can be written in: the
format of a native IBM MQ mapping's response, and
of an IbmMqResponse. MQFMT_STRING carries its body as text; the other three carry it as the
printable-characters encoding of the bytes to write.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA message with no format name, whose body may be binary.A message that starts with a version 1 rules and formatting header (MQRFH), which is binary.A message that starts with a version 2 rules and formatting header (MQRFH2), which is binary.A message whose body is text. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic IbmMqMessageFormatReturns the enum constant of this class with the specified name.static IbmMqMessageFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MQFMT_RF_HEADER_1
A message that starts with a version 1 rules and formatting header (MQRFH), which is binary. -
MQFMT_RF_HEADER_2
A message that starts with a version 2 rules and formatting header (MQRFH2), which is binary. -
MQFMT_STRING
A message whose body is text. The format used when a response names none. -
MQFMT_NONE
A message with no format name, whose body may be binary.
-
-
Field Details
-
value
The format name as IBM MQ carries it inMQMessage.format: theCMQCconstant of the same name.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-