com.ibm.mq.headers

Class MQHeaderRegistry

  • java.lang.Object
    • com.ibm.mq.jmqi.JmqiObject
      • com.ibm.mq.headers.MQHeaderRegistry
  • All Implemented Interfaces:
    MQHeaderFactory.Registry


    public class MQHeaderRegistry
    extends com.ibm.mq.jmqi.JmqiObject
    implements MQHeaderFactory.Registry
    The MQHeaderRegistry provides resources for decoding or instantiating header instances. The registry associates message formats and header types with MQHeaderFactories that can decode or create headers. Most applications will not have to use this class directly. The MQHeaderIterator and MQHeaderList classes use the default header registry as the basis for their capabilities, and this is pre-registered with the standard MQ message formats and header types. The default header registry can be obtained directly using the getDefault method on this class.

    Applications may register additional MQHeaderFactory instances in the default registry, for example, if new MQ or application header types are devised. As a convenience, new MQHeader types can be registered directly without supplying an MQHeaderFactory instance, as long as each header type is associated one-to-one with a format. (For most existing headers, this is the case; but it is not true of PCF, for example.)

    As an alternative to updating the default registry, applications can create their own MQHeaderRegistry instances and customize their contents, for example to handle custom application-defined formats. An MQHeaderIterator can be created from any MQHeaderRegistry using the createIterator method.

    See Also:
    MQHeaderIterator, MQHeaderList, MQHeaderFactory
(c) Copyright IBM Corp. 2008, 2015. All Rights Reserved.