Package org.apache.activemq.filter
Class DestinationFilter
- java.lang.Object
-
- org.apache.activemq.filter.DestinationFilter
-
- All Implemented Interfaces:
BooleanExpression,Expression
- Direct Known Subclasses:
CompositeDestinationFilter,PrefixDestinationFilter,SimpleDestinationFilter,WildcardDestinationFilter
public abstract class DestinationFilter extends Object implements BooleanExpression
Represents a filter which only operates on Destinations
-
-
Field Summary
Fields Modifier and Type Field Description static StringANY_CHILDstatic StringANY_DESCENDENT
-
Constructor Summary
Constructors Constructor Description DestinationFilter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Objectevaluate(MessageEvaluationContext message)abstract booleanisWildcard()abstract booleanmatches(ActiveMQDestination destination)booleanmatches(MessageEvaluationContext message)static DestinationFilterparseFilter(ActiveMQDestination destination)
-
-
-
Field Detail
-
ANY_DESCENDENT
public static final String ANY_DESCENDENT
- See Also:
- Constant Field Values
-
ANY_CHILD
public static final String ANY_CHILD
- See Also:
- Constant Field Values
-
-
Method Detail
-
evaluate
public Object evaluate(MessageEvaluationContext message) throws javax.jms.JMSException
- Specified by:
evaluatein interfaceExpression- Returns:
- the value of this expression
- Throws:
javax.jms.JMSException
-
matches
public boolean matches(MessageEvaluationContext message) throws javax.jms.JMSException
- Specified by:
matchesin interfaceBooleanExpression- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
javax.jms.JMSException
-
matches
public abstract boolean matches(ActiveMQDestination destination)
-
parseFilter
public static DestinationFilter parseFilter(ActiveMQDestination destination)
-
isWildcard
public abstract boolean isWildcard()
-
-