org.apache.servicemix.expression
Class JAXPNodeSetXPathExpression
java.lang.Object
org.apache.servicemix.expression.JAXPXPathExpression
org.apache.servicemix.expression.JAXPNodeSetXPathExpression
- All Implemented Interfaces:
- Expression, org.springframework.beans.factory.InitializingBean
public class JAXPNodeSetXPathExpression
- extends JAXPXPathExpression
Evaluates an XPath expression and coerces the result into a String.
- Version:
- $Revision: 359151 $
Method Summary |
java.lang.Object |
evaluate(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
Evaluates the XPath expression and returns the string values for the XML items described
by that expression. |
java.lang.Object |
evaluateXPath(java.lang.Object object)
|
Methods inherited from class org.apache.servicemix.expression.JAXPXPathExpression |
afterPropertiesSet, enableContentRereadability, evaluate, evaluateXPath, getFactory, getFunctionResolver, getNamespaceContext, getTransformer, getVariableResolver, getXMLNode, getXPath, getXPathExpression, isUseMessageContent, setFactory, setFunctionResolver, setNamespaceContext, setTransformer, setUseMessageContent, setVariableResolver, setXPath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXPNodeSetXPathExpression
public JAXPNodeSetXPathExpression()
JAXPNodeSetXPathExpression
public JAXPNodeSetXPathExpression(java.lang.String xpath)
throws java.lang.Exception
- Throws:
java.lang.Exception
evaluateXPath
public java.lang.Object evaluateXPath(java.lang.Object object)
throws javax.xml.xpath.XPathExpressionException
- Overrides:
evaluateXPath
in class JAXPXPathExpression
- Throws:
javax.xml.xpath.XPathExpressionException
evaluate
public java.lang.Object evaluate(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
throws javax.jbi.messaging.MessagingException
- Description copied from class:
JAXPXPathExpression
- Evaluates the XPath expression and returns the string values for the XML items described
by that expression.
Before evaluating the xpath expression, it will be compiled by calling
the
JAXPXPathExpression.afterPropertiesSet()
method.
- Specified by:
evaluate
in interface Expression
- Overrides:
evaluate
in class JAXPXPathExpression
- Parameters:
exchange
- MessageExchange to use on MessageVariableResolvermessage
- NormalizedMessage to use on MessageVariableResolver
- Returns:
- Object Contains the string values for the XML items described by the provided XPath
expression
- Throws:
javax.jbi.messaging.MessagingException
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.