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