org.exolab.jms.selector
Class Selector

java.lang.Object
  |
  +--org.exolab.jms.selector.Selector

public class Selector
extends java.lang.Object

This class enables messages to be filtered using a message selector. This is a String whose syntax is based on a subset of the SQL92 conditional expression syntax. A selector can contain:

Version:
$Revision: 1.1 $ $Date: 2004/11/26 01:50:44 $
Author:
Tim Anderson

Constructor Summary
Selector(java.lang.String expression)
          Construct a message selector that selects messages based on the supplied expression.
 
Method Summary
 boolean selects(javax.jms.Message message)
          Return if message is selected by the expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Selector

public Selector(java.lang.String expression)
         throws javax.jms.InvalidSelectorException
Construct a message selector that selects messages based on the supplied expression.
Parameters:
expression - the conditional expression
Throws:
javax.jms.InvalidSelectorException - if expression is invalid
Method Detail

selects

public boolean selects(javax.jms.Message message)
Return if message is selected by the expression
Parameters:
message - the message
Returns:
true if the message is selected, otherwise false


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.