Interface MQHeader.Field

Enclosing interface:
MQHeader

public static interface MQHeader.Field
Interface representing an individual header field. A field has a name, a type, and a value. This interface is only used for dynamic introspection by applications manipulating arbitrary headers.
  • Method Details

    • getName

      String getName()
      Returns:
      the field name.
    • getType

      String getType()
      Returns:
      the field type. This will be MQLONG, MQCHAR, MQBYTE etc.
    • getValue

      Object getValue()
      Returns:
      the field value. This will be a String, String [], Integer, int [], byte [] or MQHeader according to the field type.
    • setValue

      void setValue(Object value)
      Sets the field value. This will be a String, String [], Integer, int [], byte [] or MQHeader according to the field type.
      Parameters:
      value - to set to this field
    • markConfidential

      void markConfidential(boolean value)
      Marks the field value as confidential so that it's not traced.
      Parameters:
      value - boolean true makes confidential else plain text.
    • isConfidential

      boolean isConfidential()
      Is this field confidential.
      Returns:
      true if the field is confidential.