|
Smack | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smack.filter.OrFilter
Implements the logical OR operation over two or more packet filters. In other words, packets pass this filter if they pass any of the filters.
Constructor Summary | |
OrFilter()
Creates an empty OR filter. |
|
OrFilter(PacketFilter filter1,
PacketFilter filter2)
Creates an OR 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 OR operation. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OrFilter()
addFilter(PacketFilter)
method.
public OrFilter(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()
|
Smack | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |