org.apache.activemq.filter
Class XPathExpression
java.lang.Object
org.apache.activemq.filter.XPathExpression
- All Implemented Interfaces:
- BooleanExpression, Expression
public final class XPathExpression
- extends java.lang.Object
- implements BooleanExpression
Used to evaluate an XPath Expression in a JMS selector.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DOCUMENT_BUILDER_FACTORY_FEATURE
public static final java.lang.String DOCUMENT_BUILDER_FACTORY_FEATURE
- See Also:
- Constant Field Values
setupFeatures
protected static void setupFeatures(javax.xml.parsers.DocumentBuilderFactory factory)
evaluate
public java.lang.Object evaluate(MessageEvaluationContext message)
throws javax.jms.JMSException
- Specified by:
evaluate
in interface Expression
- Returns:
- the value of this expression
- Throws:
javax.jms.JMSException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
matches
public boolean matches(MessageEvaluationContext message)
throws javax.jms.JMSException
- Specified by:
matches
in interface BooleanExpression
- Parameters:
message
-
- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
javax.jms.JMSException
Copyright © 2005-2016. All Rights Reserved.