|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smack.filter.ToContainsFilter
public class ToContainsFilter
Filters for packets where the "to" field contains a specified value. For example, the filter could be used to listen for all packets sent to a group chat nickname.
Constructor Summary | |
---|---|
ToContainsFilter(java.lang.String to)
Creates a "to" contains filter using the "to" field part. |
Method Summary | |
---|---|
boolean |
accept(Packet packet)
Tests whether or not the specified packet should pass the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToContainsFilter(java.lang.String to)
to
- the to field value the packet must contain.Method Detail |
---|
public boolean accept(Packet packet)
PacketFilter
accept
in interface PacketFilter
packet
- the packet to test.
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |