org.mule.routing.filters
Class ExceptionTypeFilter

java.lang.Object
  extended byorg.mule.routing.filters.PayloadTypeFilter
      extended byorg.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.


Constructor Summary
ExceptionTypeFilter()
           
ExceptionTypeFilter(Class expectedType)
           
 
Method Summary
 boolean accept(UMOMessage message)
          Check a given message against this filter.
 
Methods inherited from class org.mule.routing.filters.PayloadTypeFilter
getExpectedType, setExpectedType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionTypeFilter

public ExceptionTypeFilter()

ExceptionTypeFilter

public ExceptionTypeFilter(Class expectedType)
Method Detail

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.