@Deprecated @ConfigDeprecated(removalVersion="4.0.0", message="IBM recommends using JMS instead", groups=java.lang.Deprecated.class) @Removal(version="4.0.0") public class XpathField extends FieldMapper
In the adapter configuration file this class is aliased as wmq-xpath-field which is the preferred alternative to the fully qualified classname when building your configuration.
FieldMapper.Field
logR
Constructor and Description |
---|
XpathField()
Deprecated.
|
XpathField(java.lang.String mqField,
java.lang.String xpath)
Deprecated.
|
XpathField(java.lang.String mqField,
java.lang.String xpath,
ByteTranslator bt)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
copy(AdaptrisMessage msg,
com.ibm.mq.MQMessage mqMsg)
Deprecated.
Copy information from the AdaptrisMessage object into the MQMessage object.
|
void |
copy(com.ibm.mq.MQMessage mqMsg,
AdaptrisMessage msg)
Deprecated.
Copy information from the MQMessage object into the AdaptrisMessage object.
|
KeyValuePairSet |
getNamespaceContext()
Deprecated.
|
java.lang.String |
getXpath()
Deprecated.
Return the XPath expression.
|
void |
setNamespaceContext(KeyValuePairSet namespaceContext)
Deprecated.
Set the namespace context for resolving namespaces.
|
void |
setXpath(java.lang.String s)
Deprecated.
Set the XPath Expression.
|
createField, getByteTranslator, getConvertNull, getMqFieldName, setByteTranslator, setConvertNull, setMqFieldName
public XpathField()
public XpathField(java.lang.String mqField, java.lang.String xpath)
mqField
- The MQ Field namexpath
- the XPathpublic XpathField(java.lang.String mqField, java.lang.String xpath, ByteTranslator bt)
mqField
- the MQ Field namexpath
- the xpathbt
- the byte translator.public 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 getXpath()
public void setXpath(java.lang.String s)
If the XPath will resolve to more than 1 item, then any one of items is used to populate the MQMessage field
s
- the value to setpublic KeyValuePairSet getNamespaceContext()
public void setNamespaceContext(KeyValuePairSet namespaceContext)
namespaceContext
-