org.mule.routing.filters
Class PayloadTypeFilter
java.lang.Object
org.mule.routing.filters.PayloadTypeFilter
- All Implemented Interfaces:
- Filter
- Direct Known Subclasses:
- ExceptionTypeFilter
public class PayloadTypeFilter
- extends Object
- implements Filter
PayloadTypeFilter
filters based on the type of the object received.
PayloadTypeFilter
public PayloadTypeFilter()
PayloadTypeFilter
public PayloadTypeFilter(String expectedType)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
PayloadTypeFilter
public PayloadTypeFilter(Class expectedType)
accept
public boolean accept(MuleMessage message)
- Description copied from interface:
Filter
- Check a given message against this filter.
- Specified by:
accept
in interface Filter
- 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)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.