View Javadoc

1   /*
2    * $Id: TestFilter.java 20321 2010-11-24 15:21:24Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.test.integration.config;
12  
13  import org.mule.api.MuleMessage;
14  import org.mule.api.routing.filter.Filter;
15  
16  /**
17   * TODO
18   */
19  public class TestFilter implements Filter
20  {
21      private String foo;
22      private int bar;
23  
24      public int getBar()
25      {
26          return bar;
27      }
28  
29      public void setBar(int bar)
30      {
31          this.bar = bar;
32      }
33  
34      public String getFoo()
35      {
36          return foo;
37      }
38  
39      public void setFoo(String foo)
40      {
41          this.foo = foo;
42      }
43  
44      public boolean accept(MuleMessage message)
45      {
46          return true;
47      }
48  }