public class FromContainsFilter extends Object implements PacketFilter
| Constructor and Description |
|---|
FromContainsFilter(String from)
Creates a "from" contains filter using the "from" 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 FromContainsFilter(String from)
from - the from 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.