org.mule.routing.filters
Class PayloadTypeFilter

java.lang.Object
  extended by org.mule.routing.filters.PayloadTypeFilter
All Implemented Interfaces:
UMOFilter
Direct Known Subclasses:
ExceptionTypeFilter

public class PayloadTypeFilter
extends Object
implements UMOFilter

PayloadTypeFilter filters based on the type of the object received.


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

Constructor Detail

PayloadTypeFilter

public PayloadTypeFilter()

PayloadTypeFilter

public PayloadTypeFilter(Class expectedType)
Method Detail

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

getExpectedType

public Class getExpectedType()

setExpectedType

public void setExpectedType(Class expectedType)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.