public interface Filter
Filter interface allows Message filtering.| Modifier and Type | Method and Description |
|---|---|
default boolean |
accept(Event event,
Event.Builder builder)
Checks a given event against this filter.
|
boolean |
accept(org.mule.runtime.api.message.Message message,
Event.Builder builder)
Deprecated.
|
@Deprecated boolean accept(org.mule.runtime.api.message.Message message, Event.Builder builder)
TODO MULE-9142 See how this API can be improved to not need the builder.
message - 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.default boolean accept(Event event, Event.Builder builder)
TODO MULE-9142 See how this API can be improved to not need the builder.
event - a non null event to filter.builder - an event builder in case the filter needs to make changes to the event.true if the event matches the filterCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.