org.mule.routing.filters
Class ExceptionTypeFilter
java.lang.Object
org.mule.routing.filters.PayloadTypeFilter
org.mule.routing.filters.ExceptionTypeFilter
- All Implemented Interfaces:
- Filter
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(MuleMessage message)
Check a given message against this filter. |
ExceptionTypeFilter
public ExceptionTypeFilter()
ExceptionTypeFilter
public ExceptionTypeFilter(String expectedType)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
ExceptionTypeFilter
public ExceptionTypeFilter(Class expectedType)
accept
public boolean accept(MuleMessage message)
- Check a given message against this filter.
- Specified by:
accept
in interface Filter
- Overrides:
accept
in class PayloadTypeFilter
- Parameters:
message
- a non null message to filter.
- Returns:
true
if the message matches the filter
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.