org.mule.routing.filters
Class ExceptionTypeFilter
java.lang.Object
org.mule.routing.filters.PayloadTypeFilter
org.mule.routing.filters.ExceptionTypeFilter
- All Implemented Interfaces:
- UMOFilter
public class ExceptionTypeFilter
- extends PayloadTypeFilter
A filter that accepts messages that have an exception payload. An Exception type
can also be set on this filter to allow it to accept Exception messages of a
particular Exception class only.
Method Summary |
boolean |
accept(UMOMessage message)
Check a given message against this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionTypeFilter
public ExceptionTypeFilter()
ExceptionTypeFilter
public ExceptionTypeFilter(Class expectedType)
accept
public boolean accept(UMOMessage message)
- Check a given message against this filter.
- Specified by:
accept
in interface UMOFilter
- Overrides:
accept
in class PayloadTypeFilter
- Parameters:
message
- a non null message to filter.
- Returns:
true
if the message matches the filter
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.