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 java.lang.Object
implements QueryFilter


Field Summary
 
Fields inherited from interface org.apache.activemq.console.filter.QueryFilter
QUERY_DELIMETER
 
Constructor Summary
StubQueryFilter(java.util.List data)
          Creates a stub query that returns the given collections as the query result
 
Method Summary
 java.util.List query(java.util.List queries)
          Returns the provided stub data as a stub query result
 java.util.List query(java.lang.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(java.util.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 java.util.List query(java.lang.String queryStr)
                     throws java.lang.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:
java.lang.Exception

query

public java.util.List query(java.util.List queries)
                     throws java.lang.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:
java.lang.Exception


Copyright © 2005-2016. All Rights Reserved.