public class ToContainsFilter extends Object implements PacketFilter
| Constructor and Description |
|---|
ToContainsFilter(String to)
Creates a "to" contains filter using the "to" field part.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.xmpp.packet.Packet packet)
Tests whether or not the specified packet should pass the filter.
|
public ToContainsFilter(String to)
to - the to field value the packet must contain.public boolean accept(org.xmpp.packet.Packet packet)
PacketFilteraccept in interface PacketFilterpacket - the packet to test.Copyright © 2014. All Rights Reserved.