org.mule.routing.filters
Class OGNLFilter
java.lang.Object
org.mule.routing.filters.OGNLFilter
- All Implemented Interfaces:
- UMOFilter
- public class OGNLFilter
- extends Object
- implements UMOFilter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final Log logger
OGNLFilter
public OGNLFilter()
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.