org.mule.routing.filters
Class MessagePropertyFilter
java.lang.Object
org.mule.routing.filters.MessagePropertyFilter
- All Implemented Interfaces:
- UMOFilter
- public class MessagePropertyFilter
- extends Object
- implements UMOFilter
MessagePropertyFilter can be used to filter against properties on
an event. This can be very useful as the event properties represent all the meta
information about the event from the underlying transport, so for an event
received over Http you can check for Http Headers or For Jms you can check for Jms
Headers. The pattern should be expresed as a key/value pair i.e.
propertyName=value If you want to compare more than one property you can use the
logic filters for And, Or and Not expressions. By default the comparison is case
sensitive you you can sent the caseSensitive property to override this.
- Version:
- $Revision: 3798 $
- Author:
- Ross Mason
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessagePropertyFilter
public MessagePropertyFilter()
MessagePropertyFilter
public MessagePropertyFilter(String expression)
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
compare
protected boolean compare(String value1,
String value2)
getExpression
public String getExpression()
setExpression
public void setExpression(String expression)
isCaseSensitive
public boolean isCaseSensitive()
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.