|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.util.xpath.SourceXPathSupport
public class SourceXPathSupport
Support class for mediators operating on message parts selected by an XPath
expression. It handles the default XPath expression
s11:Body/child::*[position()=1] | s12:Body/child::*[position()=1]
without actually parsing or evaluating it.
Field Summary | |
---|---|
static String |
DEFAULT_XPATH
|
Constructor Summary | |
---|---|
SourceXPathSupport()
|
Method Summary | |
---|---|
SynapseXPath |
getXPath()
Get the XPath expression. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_XPATH
Constructor Detail |
---|
public SourceXPathSupport()
Method Detail |
---|
public SynapseXPath getXPath()
public void setXPath(SynapseXPath xpath)
xpath
- the XPath expressionpublic void setXPathString(String xpathString)
xpathString
- a string representation of the XPath expressionpublic 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
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |