Package org.apache.activemq.filter
Class XPathExpression
- java.lang.Object
-
- org.apache.activemq.filter.XPathExpression
-
- All Implemented Interfaces:
BooleanExpression,Expression
public final class XPathExpression extends Object implements BooleanExpression
Used to evaluate an XPath Expression in a JMS selector.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceXPathExpression.XPathEvaluator
-
Field Summary
Fields Modifier and Type Field Description static StringDOCUMENT_BUILDER_FACTORY_FEATURE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectevaluate(MessageEvaluationContext message)booleanmatches(MessageEvaluationContext message)protected static voidsetupFeatures(DocumentBuilderFactory factory)StringtoString()
-
-
-
Field Detail
-
DOCUMENT_BUILDER_FACTORY_FEATURE
public static final String DOCUMENT_BUILDER_FACTORY_FEATURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setupFeatures
protected static void setupFeatures(DocumentBuilderFactory factory)
-
evaluate
public Object evaluate(MessageEvaluationContext message) throws JMSException
- Specified by:
evaluatein interfaceExpression- Returns:
- the value of this expression
- Throws:
JMSException
-
matches
public boolean matches(MessageEvaluationContext message) throws JMSException
- Specified by:
matchesin interfaceBooleanExpression- Parameters:
message-- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
JMSException
-
-