org.apache.activemq.filter
Class PrefixDestinationFilter

java.lang.Object
  extended by org.apache.activemq.filter.DestinationFilter
      extended by org.apache.activemq.filter.PrefixDestinationFilter
All Implemented Interfaces:
BooleanExpression, Expression

public class PrefixDestinationFilter
extends DestinationFilter

Matches messages which match a prefix like "A.B.>"


Field Summary
 
Fields inherited from class org.apache.activemq.filter.DestinationFilter
ANY_CHILD, ANY_DESCENDENT
 
Constructor Summary
PrefixDestinationFilter(java.lang.String[] prefixes, byte destinationType)
          An array of paths, the last path is '>'
 
Method Summary
 java.lang.String getText()
           
 boolean isWildcard()
           
 boolean matches(ActiveMQDestination destination)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.activemq.filter.DestinationFilter
evaluate, matches, parseFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrefixDestinationFilter

public PrefixDestinationFilter(java.lang.String[] prefixes,
                               byte destinationType)
An array of paths, the last path is '>'

Parameters:
prefixes -
Method Detail

matches

public boolean matches(ActiveMQDestination destination)
Specified by:
matches in class DestinationFilter

getText

public java.lang.String getText()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isWildcard

public boolean isWildcard()


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.