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 java.lang.Object
- implements Filter
PayloadTypeFilter
filters based on the type of the object received.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
PayloadTypeFilter
public PayloadTypeFilter()
PayloadTypeFilter
public PayloadTypeFilter(java.lang.String expectedType)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
PayloadTypeFilter
public PayloadTypeFilter(java.lang.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 java.lang.Class getExpectedType()
setExpectedType
public void setExpectedType(java.lang.Class expectedType)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.