org.codehaus.activemq.filter
Class OrFilter

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

public class OrFilter
extends Object
implements Filter

Represents a logical OR operation on two filters

Version:
$Revision: 1.1 $

Constructor Summary
OrFilter(Filter left, Filter right)
           
 
Method Summary
 Filter getLeft()
           
 Filter getRight()
           
 boolean isWildcard()
           
 boolean matches(Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrFilter

public OrFilter(Filter left,
                Filter right)
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

getLeft

public Filter getLeft()

getRight

public Filter getRight()


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