org.mule.routing.filters
Class PayloadTypeFilter
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PayloadTypeFilter
public PayloadTypeFilter()
PayloadTypeFilter
public PayloadTypeFilter(Class expectedType)
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.