public class SourceXPathSupport extends Object
s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1]
without actually parsing or evaluating it.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_XPATH |
Constructor and Description |
---|
SourceXPathSupport() |
Modifier and Type | Method and Description |
---|---|
SynapseXPath |
getXPath()
Get the XPath expression.
|
org.apache.axiom.om.OMNode |
selectOMNode(MessageContext synCtx,
SynapseLog synLog)
Get the first node selected by the configured XPath expression.
|
void |
setXPath(SynapseXPath xpath)
Set the XPath expression.
|
void |
setXPathString(String xpathString)
Set the string representation of the XPath expression.
|
String |
toString()
Get a string representation of the XPath expression for debugging purposes.
|
public static final String DEFAULT_XPATH
public SynapseXPath getXPath()
public void setXPath(SynapseXPath xpath)
xpath
- the XPath expressionpublic void setXPathString(String xpathString)
xpathString
- a string representation of the XPath expressionpublic org.apache.axiom.om.OMNode selectOMNode(MessageContext synCtx, SynapseLog synLog)
s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1]
.synCtx
- the message contextsynLog
- SynapseException
- if the evaluation of the XPath expression failed or didn't result in an
OMNode
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.