org.apache.activemq.console.filter
Class StubQueryFilter

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

public class StubQueryFilter
extends Object
implements QueryFilter


Field Summary
 
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER
 
Constructor Summary
StubQueryFilter(List data)
          Creates a stub query that returns the given collections as the query result
 
Method Summary
 List query(List queries)
          Returns the provided stub data as a stub query result
 List query(String queryStr)
          Returns the provided stub data as a stub query result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubQueryFilter

public StubQueryFilter(List data)
Creates a stub query that returns the given collections as the query result

Parameters:
data - - the stub query result
Method Detail

query

public List query(String queryStr)
           throws Exception
Returns the provided stub data as a stub query result

Specified by:
query in interface QueryFilter
Parameters:
queryStr - - not use
Returns:
the stub query result
Throws:
Exception

query

public List query(List queries)
           throws Exception
Returns the provided stub data as a stub query result

Specified by:
query in interface QueryFilter
Parameters:
queries - - not use
Returns:
the stub query result
Throws:
Exception


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