1 10 11 package org.mule.providers.xmpp.filters; 12 13 import org.jivesoftware.smack.filter.AndFilter; 14 import org.jivesoftware.smack.filter.PacketFilter; 15 16 19 public class XmppAndFilter extends AbstractXmppFilter 20 { 21 private volatile PacketFilter leftFilter; 22 private volatile PacketFilter rightFilter; 23 24 public XmppAndFilter() 25 { 26 super(); 27 } 28 29 public XmppAndFilter(PacketFilter left, PacketFilter right) 30 { 31 this.leftFilter = left; 32 this.rightFilter = right; 33 } 34 35 public void setLeftFilter(PacketFilter left) 36 { 37 this.leftFilter = left; 38 } 39 40 public void setRightFilter(PacketFilter right) 41 { 42 this.leftFilter = right; 43 } 44 45 public PacketFilter getLeftFilter() 46 { 47 return leftFilter; 48 } 49 50 public PacketFilter getRightFilter() 51 { 52 return rightFilter; 53 } 54 55 protected PacketFilter createFilter() 56 { 57 return new AndFilter(leftFilter, rightFilter); 58 } 59 } 60 | Popular Tags |