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.PacketFilter;
10  import org.jivesoftware.smack.filter.PacketIDFilter;
11  
12  /**
13   * <code>XmppPacketIDFilter</code> is an Xmpp PacketIDFilter adapter.
14   */
15  public class XmppPacketIDFilter extends XmppFromContainsFilter
16  {
17      public XmppPacketIDFilter()
18      {
19          super();
20      }
21  
22      public XmppPacketIDFilter(String expression)
23      {
24          super(expression);
25      }
26  
27      @Override
28      protected PacketFilter createFilter()
29      {
30          return new PacketIDFilter(pattern);
31      }
32  }