org.codehaus.activemq.filter
Class ExpressionFilter

java.lang.Object
  extended byorg.codehaus.activemq.filter.ExpressionFilter
All Implemented Interfaces:
Filter

public class ExpressionFilter
extends Object
implements Filter

Represents a filter using an expression

Version:
$Revision: 1.2 $

Constructor Summary
ExpressionFilter(Expression expression)
           
 
Method Summary
 Expression getExpression()
           
 boolean isWildcard()
           
 boolean matches(Message message)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpressionFilter

public ExpressionFilter(Expression expression)
Method Detail

matches

public boolean matches(Message message)
                throws JMSException
Specified by:
matches in interface Filter
Returns:
true if this filter matches the given JMS message
Throws:
JMSException

isWildcard

public boolean isWildcard()
Specified by:
isWildcard in interface Filter
Returns:
return true if this filter is a wildcard filter and so can match multiple destinations

getExpression

public Expression getExpression()
Returns:
Returns the expression.

toString

public String toString()


Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.