2. Custom Filters
• The standard filters handle most filtering
requirements, but you can also create your
own filter. To create a filter, implement
the Filter interface, which has a single
method:
public boolean accept(MuleMessage message);
3. • This method returns true if the message
matches the criteria that the filter imposes.
Otherwise, it returns false.
• You can then use this filter with the <custom-
filter...> element, using the class attribute to
specify the custom filter class you created and
specifying any necessary properties using
the <spring:property> child element.
5. • A user-implemented filter.
• Attributes of <custom-filter...>
Name
• Identifies the filter so that other elements can
reference it. Required if the filter is defined at the
global level.
class
• An implementation of the Filter interface.
6. • Child Elements of <custom-filter...>
spring:property
• Spring-style property element for custom
configuration