org.objectweb.joram.shared.selectors
Class Selector

java.lang.Object
  extended byorg.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.


Constructor Summary
Selector()
           
 
Method Summary
static boolean checks(java.lang.String selector)
          Clients call this method to check a selector syntax.
static boolean matches(Message message, java.lang.String selector)
          Destinations call this method to filter a message according to a selector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Selector

public Selector()
Method Detail

checks

public static boolean checks(java.lang.String selector)
                      throws SelectorException
Clients call this method to check a selector syntax.

Returns:
true when the syntax is ok.
Throws:
SelectorException - When the selector syntax is incorrect.

matches

public static boolean matches(Message message,
                              java.lang.String selector)
Destinations call this method to filter a message according to a selector.

Returns:
true when the selection matches, false otherwise.


Copyright ? 2004 Scalagent - All rights reserved