public class OrFilter extends Object implements PacketFilter
| Constructor and Description |
|---|
OrFilter()
Creates an empty OR filter.
|
OrFilter(PacketFilter filter1,
PacketFilter filter2)
Creates an OR filter using the two specified filters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.xmpp.packet.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() |
public OrFilter()
addFilter(PacketFilter) method.public OrFilter(PacketFilter filter1, PacketFilter filter2)
filter1 - the first packet filter.filter2 - the second packet filter.public void addFilter(PacketFilter filter)
filter - a filter to add to the filter list.public boolean accept(org.xmpp.packet.Packet packet)
PacketFilteraccept in interface PacketFilterpacket - the packet to test.Copyright © 2014. All Rights Reserved.