org.objectweb.joram.shared.selectors

Class Selector


public class Selector
extends java.lang.Object

The Selector class is used for filtering messages according to their header fields and properties.

Method Summary

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.

Method Details

checks

public static boolean checks(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,
                              String selector)
Destinations call this method to filter a message according to a selector.

Returns:
true when the selection matches, false otherwise.


Copyright B) 2004 Scalagent - All rights reserved