View Javadoc
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.transport.xmpp.filters;
8   
9   import org.jivesoftware.smack.filter.OrFilter;
10  import org.jivesoftware.smack.filter.PacketFilter;
11  
12  /**
13   * <code>XmppOrFilter</code> an Xmpp OR filter
14   */
15  public class XmppOrFilter extends XmppAndFilter
16  {
17      public XmppOrFilter()
18      {
19          super();
20      }
21  
22      public XmppOrFilter(PacketFilter left, PacketFilter right)
23      {
24          super(left, right);
25      }
26  
27      @Override
28      protected PacketFilter createFilter()
29      {
30          return new OrFilter(getLeftFilter(), getRightFilter());
31      }
32  }