public class PayloadTypeFilter extends Object implements Filter
PayloadTypeFilter filters based on the type of the object received.| Constructor and Description |
|---|
PayloadTypeFilter() |
PayloadTypeFilter(Class expectedType) |
PayloadTypeFilter(String expectedType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.mule.runtime.api.message.Message message,
Event.Builder builder)
Checks a given message against this filter.
|
boolean |
equals(Object obj) |
Class |
getExpectedType() |
int |
hashCode() |
void |
setExpectedType(Class expectedType) |
public PayloadTypeFilter()
public PayloadTypeFilter(String expectedType) throws ClassNotFoundException
ClassNotFoundExceptionpublic PayloadTypeFilter(Class expectedType)
public boolean accept(org.mule.runtime.api.message.Message message,
Event.Builder builder)
FilterTODO MULE-9142 See how this API can be improved to not need the builder.
accept in interface Filtermessage - a non null message to filter.builder - an event builder in case the filter needs to make changes to the event.true if the message matches the filter TODO MULE-9341 Remove Filters that are not needed. This method
will be removed when filters are cleaned up.public Class getExpectedType()
public void setExpectedType(Class expectedType)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.