org.objectweb.joram.shared.selectors
Class Selector
java.lang.Object
org.objectweb.joram.shared.selectors.Selector
public class Selector
extends java.lang.Object
The Selector
class is used for filtering messages according
to their header fields and properties.
static boolean | checks(String selector) - Clients call this method to check a selector syntax.
|
static boolean | matches(Message message, String selector) - Destinations call this method to filter a message according to a selector.
|
checks
public static boolean checks(String selector)
throws SelectorException
Clients call this method to check a selector syntax.
true
when the syntax is ok.
SelectorException
- When the selector syntax is incorrect.
matches
public static boolean matches(Message message,
String selector)
Destinations call this method to filter a message according to a selector.
true
when the selection matches, false
otherwise.
Copyright B) 2004 Scalagent - All rights reserved