|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smack.filter.AndFilter
public class AndFilter
Implements the logical AND operation over two or more packet filters. In other words, packets pass this filter if they pass all of the filters.
Constructor Summary | |
---|---|
AndFilter()
Creates an empty AND filter. |
|
AndFilter(PacketFilter filter1,
PacketFilter filter2)
Creates an AND filter using the two specified filters. |
Method Summary | |
---|---|
boolean |
accept(Packet packet)
Tests whether or not the specified packet should pass the filter. |
void |
addFilter(PacketFilter filter)
Adds a filter to the filter list for the AND operation. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AndFilter()
addFilter(PacketFilter)
method.
public AndFilter(PacketFilter filter1, PacketFilter filter2)
filter1
- the first packet filter.filter2
- the second packet filter.Method Detail |
---|
public void addFilter(PacketFilter filter)
filter
- a filter to add to the filter list.public boolean accept(Packet packet)
PacketFilter
accept
in interface PacketFilter
packet
- the packet to test.
public String toString()
toString
in class Object
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |