public class ConfiguredField extends FieldMapper
In the adapter configuration file this class is aliased as wmq-configured-field which is the preferred alternative to the fully qualified classname when building your configuration.
FieldMapper.Field
logR
Constructor and Description |
---|
ConfiguredField() |
ConfiguredField(java.lang.String mqField,
java.lang.String value) |
ConfiguredField(java.lang.String mqField,
java.lang.String value,
ByteTranslator bt) |
Modifier and Type | Method and Description |
---|---|
void |
copy(AdaptrisMessage msg,
com.ibm.mq.MQMessage mqMsg)
Copy information from the AdaptrisMessage object into the MQMessage object.
|
void |
copy(com.ibm.mq.MQMessage mqMsg,
AdaptrisMessage msg)
Copy information from the MQMessage object into the AdaptrisMessage object.
|
java.lang.String |
getConfiguredValue() |
void |
setConfiguredValue(java.lang.String s) |
createField, getByteTranslator, getConvertNull, getMqFieldName, setByteTranslator, setConvertNull, setMqFieldName
public ConfiguredField()
public ConfiguredField(java.lang.String mqField, java.lang.String value)
mqField
- the field namevalue
- the value to map.public ConfiguredField(java.lang.String mqField, java.lang.String value, ByteTranslator bt)
mqField
- the field namevalue
- the value to map.bt
- the byte translatorpublic void copy(AdaptrisMessage msg, com.ibm.mq.MQMessage mqMsg) throws java.io.IOException, com.ibm.mq.MQException, CoreException
FieldMapper
copy
in class FieldMapper
msg
- the AdaptrisMessage Object.mqMsg
- the MQMessage object.java.io.IOException
- wrapping any IOExceptioncom.ibm.mq.MQException
- for any MQ related ExceptionsCoreException
- for any framework related exceptionspublic void copy(com.ibm.mq.MQMessage mqMsg, AdaptrisMessage msg) throws java.io.IOException, com.ibm.mq.MQException, CoreException
FieldMapper
copy
in class FieldMapper
mqMsg
- the MQMessage object.msg
- the AdaptrisMessage Object.java.io.IOException
- wrapping any IOExceptioncom.ibm.mq.MQException
- for any MQ related ExceptionsCoreException
- for any framework related exceptionsFieldMapper.copy(com.ibm.mq.MQMessage,
com.adaptris.core.AdaptrisMessage)
public java.lang.String getConfiguredValue()
public void setConfiguredValue(java.lang.String s)
s
- the value which will be used to populate the associated MQ Field.