|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.expression.JaxenXPathExpression
public class JaxenXPathExpression
Evalutes an XPath expression on the given message using Jaxen
| Constructor Summary | |
|---|---|
JaxenXPathExpression()
|
|
JaxenXPathExpression(java.lang.String xpath)
A helper constructor to make a fully created expression. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected org.jaxen.XPath |
createXPath(java.lang.String xp)
|
void |
enableContentRereadability(javax.jbi.messaging.NormalizedMessage message)
Convert the given NormalizedMessage instance's content to a re-readable Source This allows the
content to be read more than once (e.g. |
java.lang.Object |
evaluate(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
Evaluates the expression on the given exchange and message. |
protected java.lang.Object |
evaluateXPath(java.lang.Object object)
|
protected boolean |
evaluateXPathAsBoolean(java.lang.Object object)
|
org.jaxen.FunctionContext |
getFunctionContext()
|
org.jaxen.NamespaceContext |
getNamespaceContext()
|
SourceTransformer |
getTransformer()
|
JaxenVariableContext |
getVariableContext()
|
protected java.lang.Object |
getXMLNode(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
|
java.lang.String |
getXpath()
|
org.jaxen.XPath |
getXpathObject()
|
boolean |
isUseMessageContent()
|
boolean |
matches(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
|
void |
setFunctionContext(org.jaxen.FunctionContext functionContext)
|
void |
setNamespaceContext(org.jaxen.NamespaceContext namespaceContext)
|
void |
setTransformer(SourceTransformer transformer)
|
void |
setUseMessageContent(boolean useMessageContent)
Specifies whether or not the XPath expression uses the message content. |
void |
setVariableContext(JaxenVariableContext variableContext)
|
void |
setXpath(java.lang.String xpath)
|
void |
setXpathObject(org.jaxen.XPath xpathObject)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JaxenXPathExpression()
public JaxenXPathExpression(java.lang.String xpath)
throws java.lang.Exception
afterPropertiesSet() method to ensure this POJO is
properly constructed.
java.lang.Exception| Method Detail |
|---|
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
public java.lang.Object evaluate(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
throws javax.jbi.messaging.MessagingException
Expression
evaluate in interface Expressionexchange - the message exchangemessage - the message, typically an inbound message
javax.jbi.messaging.MessagingException
public boolean matches(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingExceptionpublic org.jaxen.XPath getXpathObject()
public void setXpathObject(org.jaxen.XPath xpathObject)
public java.lang.String getXpath()
public void setXpath(java.lang.String xpath)
public boolean isUseMessageContent()
public void setUseMessageContent(boolean useMessageContent)
true, but you can set it to
false to avoid that the message content is converted to
StringSource
useMessageContent - specify false if this expression does not
access the message contentpublic SourceTransformer getTransformer()
public void setTransformer(SourceTransformer transformer)
public JaxenVariableContext getVariableContext()
public void setVariableContext(JaxenVariableContext variableContext)
public org.jaxen.NamespaceContext getNamespaceContext()
public void setNamespaceContext(org.jaxen.NamespaceContext namespaceContext)
public org.jaxen.FunctionContext getFunctionContext()
public void setFunctionContext(org.jaxen.FunctionContext functionContext)
protected final org.jaxen.XPath createXPath(java.lang.String xp)
throws org.jaxen.JaxenException
org.jaxen.JaxenException
protected java.lang.Object evaluateXPath(java.lang.Object object)
throws org.jaxen.JaxenException
org.jaxen.JaxenException
protected boolean evaluateXPathAsBoolean(java.lang.Object object)
throws org.jaxen.JaxenException
org.jaxen.JaxenException
protected java.lang.Object getXMLNode(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
throws javax.xml.transform.TransformerException,
javax.jbi.messaging.MessagingException,
javax.xml.parsers.ParserConfigurationException,
java.io.IOException,
org.xml.sax.SAXException
javax.xml.transform.TransformerException
javax.jbi.messaging.MessagingException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
public void enableContentRereadability(javax.jbi.messaging.NormalizedMessage message)
throws javax.jbi.messaging.MessagingException
NormalizedMessage instance's content to a re-readable Source This allows the
content to be read more than once (e.g. for XPath evaluation or auditing).
message - the NormalizedMessage to convert the content for
javax.jbi.messaging.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||