org.mule.routing.filters
Class OGNLFilter

java.lang.Object
  extended byorg.mule.routing.filters.OGNLFilter
All Implemented Interfaces:
UMOFilter

public class OGNLFilter
extends Object
implements UMOFilter


Field Summary
protected  Log logger
           
 
Constructor Summary
OGNLFilter()
           
 
Method Summary
 boolean accept(UMOMessage message)
          Check a given message against this filter.
 String getExpression()
           
 void setExpression(String expression)
          Sets the expression for this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Log logger
Constructor Detail

OGNLFilter

public OGNLFilter()
Method Detail

getExpression

public String getExpression()

setExpression

public void setExpression(String expression)
                   throws ConfigurationException
Sets the expression for this filter. The argument must be a valid expression as described ini the OGNL documentation.

Parameters:
expression - the expression to use for message evaluation
Throws:
ConfigurationException - if the expression cannot be parsed
See Also:
{@link Ognl#parseExpression(String)}

accept

public boolean accept(UMOMessage message)
Description copied from interface: UMOFilter
Check a given message against this filter.

Specified by:
accept in interface UMOFilter
Parameters:
message - a non null message to filter.
Returns:
true if the message matches the filter


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.