public interface MQHeaderFactory
An individual MQHeaderFactory may handle a single message format or more than one. MQHeaderFactories are registered with a Registry that allows them to be looked up by format or type. The default MQHeaderRegistry instance has pre-registered factories for the standard MQ header types and formats, including PCF.
MQHeaderRegistry,
MQHeaderIterator| Modifier and Type | Interface and Description |
|---|---|
static interface |
MQHeaderFactory.Registry
Interface representing a registry for MQHeaderFactories and their supported types and formats.
|
| Modifier and Type | Method and Description |
|---|---|
MQHeader |
create(java.lang.String type) |
MQHeader |
decode(MQHeaderContext message)
Decodes (parses) an MQHeader instance from a message.
|
java.util.Collection<?> |
getSupportedFormats() |
java.util.Collection<?> |
getSupportedTypes() |
MQHeader create(java.lang.String type) throws java.lang.InstantiationException
type - java.lang.InstantiationExceptionMQHeader decode(MQHeaderContext message) throws java.lang.Exception, MQDataException, java.io.IOException
message - the header context.java.lang.Exception - (to allow the com.ibm.pcf classes to throw MQException)MQDataExceptionjava.io.IOExceptionjava.util.Collection<?> getSupportedFormats()
java.util.Collection<?> getSupportedTypes()