public class MetadataMapper extends PropertyMapper
In the adapter configuration file this class is aliased as msmq-metadata-mapper which is the preferred alternative to the fully qualified classname when building your configuration.
logR
Constructor and Description |
---|
MetadataMapper() |
MetadataMapper(java.lang.String field,
java.lang.String metadataKey) |
MetadataMapper(java.lang.String field,
java.lang.String metadataKey,
ByteTranslator bt) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMetadataKey() |
void |
map(AdaptrisMessage msg,
Message msmq)
Copy information from the AdaptrisMessage object into the MQMessage object.
|
void |
map(Message msmq,
AdaptrisMessage msg)
Copy information from the MQMessage object into the AdaptrisMessage object.
|
void |
setMetadataKey(java.lang.String metadataKey) |
createProperty, getByteTranslator, getConvertNull, getPropertyName, setByteTranslator, setConvertNull, setPropertyName
public MetadataMapper()
public MetadataMapper(java.lang.String field, java.lang.String metadataKey)
field
- The Field namemetadataKey
- the adaptris metadata key.public MetadataMapper(java.lang.String field, java.lang.String metadataKey, ByteTranslator bt)
field
- the Field namemetadataKey
- the adaptris metadata keybt
- the byte translator.public void map(AdaptrisMessage msg, Message msmq) throws MSMQException, CoreException
PropertyMapper
map
in class PropertyMapper
msg
- the AdaptrisMessage Object.msmq
- the MQMessage object.MSMQException
- for any MSMQ related ExceptionsCoreException
- for any framework related exceptionspublic void map(Message msmq, AdaptrisMessage msg) throws MSMQException, CoreException
PropertyMapper
map
in class PropertyMapper
msmq
- the MQMessage object.msg
- the AdaptrisMessage Object.MSMQException
- for any MSMQ related ExceptionsCoreException
- for any framework related exceptionspublic java.lang.String getMetadataKey()
public void setMetadataKey(java.lang.String metadataKey)
metadataKey
- the metadataKey from which corresponds to the MSMQ Field
value.Copyright Adaptris