Enum Class IbmMqMessageFormat

java.lang.Object
java.lang.Enum<IbmMqMessageFormat>
com.trafficparrot.sdk.ibmmq.IbmMqMessageFormat
All Implemented Interfaces:
Serializable, Comparable<IbmMqMessageFormat>, Constable

public enum IbmMqMessageFormat extends Enum<IbmMqMessageFormat>
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.
  • Enum Constant Details

    • MQFMT_RF_HEADER_1

      public static final IbmMqMessageFormat MQFMT_RF_HEADER_1
      A message that starts with a version 1 rules and formatting header (MQRFH), which is binary.
    • MQFMT_RF_HEADER_2

      public static final IbmMqMessageFormat MQFMT_RF_HEADER_2
      A message that starts with a version 2 rules and formatting header (MQRFH2), which is binary.
    • MQFMT_STRING

      public static final IbmMqMessageFormat MQFMT_STRING
      A message whose body is text. The format used when a response names none.
    • MQFMT_NONE

      public static final IbmMqMessageFormat MQFMT_NONE
      A message with no format name, whose body may be binary.
  • Field Details

    • value

      public final String value
      The format name as IBM MQ carries it in MQMessage.format: the CMQC constant of the same name.
  • Method Details

    • values

      public static IbmMqMessageFormat[] 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

      public static IbmMqMessageFormat valueOf(String name)
      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 name
      NullPointerException - if the argument is null