1 /* 2 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 3 * The software in this package is published under the terms of the CPAL v1.0 4 * license, a copy of which has been included with this distribution in the 5 * LICENSE.txt file. 6 */ 7 package org.mule.api.routing.filter; 8 9 import org.mule.api.MuleMessage; 10 11 /** 12 * The <code>Filter</code> interface allows MuleMessage filtering. 13 */ 14 15 public interface Filter 16 { 17 /** 18 * Check a given message against this filter. 19 * 20 * @param message a non null message to filter. 21 * @return <code>true</code> if the message matches the filter 22 */ 23 boolean accept(MuleMessage message); 24 }