com.ibm.mq.headers

Interface MQHeader.Field

Enclosing interface:
MQHeader

  1. 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 Summary

Modifier and Type Method and Description
  1. java.lang.String
getName()
Returns the field name.
  1. java.lang.String
getType()
Returns the field type.
  1. java.lang.Object
getValue()
Returns the field value.
  1. void
setValue(java.lang.Object value)
Sets the field value.

Method Detail

getName

  1. java.lang.String getName()
Returns the field name.

getType

  1. java.lang.String getType()
Returns the field type. This will be MQLONG, MQCHAR, MQBYTE etc.

getValue

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

setValue

  1. void setValue(java.lang.Object value)
Sets the field value. This will be a String, String [], Integer, int [], byte [] or MQHeader according to the field type.