Resetting Filters on Queue Browser
Use the resetFilters method to reset the filter list on the current queue browser. The filter list on the queue browser will be emptied out. Once the filters are reset, a browse request will return all documents with no filtering applied.
The following example illustrates how to reset filters:
BrokerAdminClient admin = null;
BrokerQueueBrowser browser = null;
//Create a Broker admin client
try {
admin = new BrokerAdminClient(broker_host,
broker_name,
null,
"admin",
"QueueBrowser-UNLOCKED",
null);
} catch(BrokerException ex) {
System.out.println("Failed to create admin client.");
return;
}
. . .
//Create a queue browser in locked or unlocked mode
...
//Reset filters
try {
browser.resetFilters();
} catch(BrokerException ex) {
System.out.println("Failed to reset filters.");
}
. . .
//Various browse operations
. . .
//Close the queue browser
try {
browser.closeQueueBrowser();
} catch(BrokerException ex) {
System.out.println("Failed to close queue browser.");
return;
}