public class ConfiguredProperty extends PropertyMapper
In the adapter configuration file this class is aliased as msmq-configured-property which is the preferred alternative to the fully qualified classname when building your configuration.
logR
Constructor and Description |
---|
ConfiguredProperty() |
ConfiguredProperty(java.lang.String mqField,
java.lang.String value) |
ConfiguredProperty(java.lang.String mqField,
java.lang.String value,
ByteTranslator bt) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConfiguredValue() |
void |
map(AdaptrisMessage msg,
Message mqMsg)
Copy information from the AdaptrisMessage object into the MQMessage object.
|
void |
map(Message mqMsg,
AdaptrisMessage msg)
Copy information from the MQMessage object into the AdaptrisMessage object.
|
void |
setConfiguredValue(java.lang.String s) |
createProperty, getByteTranslator, getConvertNull, getPropertyName, setByteTranslator, setConvertNull, setPropertyName
public ConfiguredProperty()
public ConfiguredProperty(java.lang.String mqField, java.lang.String value)
mqField
- the field namevalue
- the value to map.public ConfiguredProperty(java.lang.String mqField, java.lang.String value, ByteTranslator bt)
mqField
- the field namevalue
- the value to map.bt
- the byte translatorpublic void map(AdaptrisMessage msg, Message mqMsg) throws MSMQException, CoreException
PropertyMapper
map
in class PropertyMapper
msg
- the AdaptrisMessage Object.mqMsg
- the MQMessage object.MSMQException
- for any MSMQ related ExceptionsCoreException
- for any framework related exceptionspublic void map(Message mqMsg, AdaptrisMessage msg) throws MSMQException, CoreException
PropertyMapper
map
in class PropertyMapper
mqMsg
- the MQMessage object.msg
- the AdaptrisMessage Object.MSMQException
- for any MSMQ related ExceptionsCoreException
- for any framework related exceptionspublic java.lang.String getConfiguredValue()
public void setConfiguredValue(java.lang.String s)
s
- the value which will be used to populate the associated MSMQ Field.Copyright Adaptris