com.ibm.mq.headers
Interface MQHeader.Field
-
- Enclosing interface:
- MQHeader
public static interface MQHeader.FieldInterface 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
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringgetName()java.lang.StringgetType()java.lang.ObjectgetValue()voidsetValue(java.lang.Object value)Sets the field value.
-
-
-
Method Detail
-
getName
java.lang.String getName()
- Returns:
- the field name.
-
getType
java.lang.String getType()
- Returns:
- the field type. This will be MQLONG, MQCHAR, MQBYTE etc.
-
getValue
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
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.- Parameters:
value-
-
-