org.apache.activemq.console.filter
Class WildcardToMsgSelectorTransformFilter

java.lang.Object
  extended by org.apache.activemq.console.filter.AbstractQueryFilter
      extended by org.apache.activemq.console.filter.WildcardTransformFilter
          extended by org.apache.activemq.console.filter.WildcardToMsgSelectorTransformFilter
All Implemented Interfaces:
QueryFilter

public class WildcardToMsgSelectorTransformFilter
extends WildcardTransformFilter


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
WildcardToMsgSelectorTransformFilter(QueryFilter next)
          Creates a filter that is able to transform a wildcard query to a message selector format
 
Method Summary
protected  boolean isWildcardQuery(String query)
          Use to determine if a query string is a wildcard query.
protected  String transformWildcardQuery(String query)
          Transform a wildcard query to message selector format
 
Methods inherited from class org.apache.activemq.console.filter.WildcardTransformFilter
query
 
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

WildcardToMsgSelectorTransformFilter

public WildcardToMsgSelectorTransformFilter(QueryFilter next)
Creates a filter that is able to transform a wildcard query to a message selector format

Parameters:
next - - next query filter
Method Detail

isWildcardQuery

protected boolean isWildcardQuery(String query)
Use to determine if a query string is a wildcard query. A query string is a wildcard query if it is a key-value pair with the format = and the value is enclosed in '' and contains '*' and '?'.

Specified by:
isWildcardQuery in class WildcardTransformFilter
Parameters:
query - - query string
Returns:
true, if the query string is a wildcard query, false otherwise

transformWildcardQuery

protected String transformWildcardQuery(String query)
Transform a wildcard query to message selector format

Specified by:
transformWildcardQuery in class WildcardTransformFilter
Parameters:
query - - query string to transform
Returns:
message selector format string


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.