org.codehaus.activemq.filter
Class PrefixDestinationFilter

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

public class PrefixDestinationFilter
extends DestinationFilter

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

Version:
$Revision: 1.1 $

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

Constructor Detail

PrefixDestinationFilter

public PrefixDestinationFilter(String[] prefixes)
An array of paths, the last path is '>'

Parameters:
prefixes -
Method Detail

matches

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

getText

public String getText()

toString

public String toString()

isWildcard

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


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