|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smack.filter.PacketTypeFilter
public class PacketTypeFilter
Filters for packets of a particular type. The type is given as a Class object, so example types would:
Constructor Summary | |
---|---|
PacketTypeFilter(java.lang.Class<? extends Packet> packetType)
Creates a new packet type filter that will filter for packets that are the same type as packetType. |
Method Summary | |
---|---|
boolean |
accept(Packet packet)
Tests whether or not the specified packet should pass the filter. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PacketTypeFilter(java.lang.Class<? extends Packet> packetType)
packetType
- the Class type.Method Detail |
---|
public boolean accept(Packet packet)
PacketFilter
accept
in interface PacketFilter
packet
- the packet to test.
public java.lang.String toString()
toString
in class java.lang.Object
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |