|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smack.filter.IQTypeFilter
public class IQTypeFilter
A filter for IQ packet types. Returns true only if the packet is an IQ packet and it matches the type provided in the constructor.
Constructor Summary | |
---|---|
IQTypeFilter(IQ.Type type)
|
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 IQTypeFilter(IQ.Type type)
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 |