org.apache.activemq.console.filter
Class WildcardTransformFilter

java.lang.Object
  extended by org.apache.activemq.console.filter.AbstractQueryFilter
      extended by org.apache.activemq.console.filter.WildcardTransformFilter
All Implemented Interfaces:
QueryFilter
Direct Known Subclasses:
WildcardToMsgSelectorTransformFilter, WildcardToRegExTransformFilter

public abstract class WildcardTransformFilter
extends AbstractQueryFilter


Field Summary
 
Fields inherited from class org.apache.activemq.console.filter.AbstractQueryFilter
next
 
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER
 
Constructor Summary
protected WildcardTransformFilter(QueryFilter next)
          Creates a wildcard transform filter that is able to convert a wildcard expression (determined by isWildcardQuery) to a another query type (use transformWildcardQuery).
 
Method Summary
protected abstract  boolean isWildcardQuery(String query)
          Use to determine is a query string is a wildcard query
 List query(List queries)
          Converts the query list to set of different queries
protected abstract  String transformWildcardQuery(String query)
          Use to transform a wildcard query string to another query format
 
Methods inherited from class org.apache.activemq.console.filter.AbstractQueryFilter
query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WildcardTransformFilter

protected WildcardTransformFilter(QueryFilter next)
Creates a wildcard transform filter that is able to convert a wildcard expression (determined by isWildcardQuery) to a another query type (use transformWildcardQuery).

Parameters:
next - - the next query filter
Method Detail

query

public List query(List queries)
           throws Exception
Converts the query list to set of different queries

Parameters:
queries - - query list to transform
Returns:
- result of the query
Throws:
Exception

isWildcardQuery

protected abstract boolean isWildcardQuery(String query)
Use to determine is a query string is a wildcard query

Parameters:
query - - query string
Returns:
true, if the query string is a wildcard query, false otherwise

transformWildcardQuery

protected abstract String transformWildcardQuery(String query)
Use to transform a wildcard query string to another query format

Parameters:
query - - query string to transform
Returns:
transformed query


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.