|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smack.Connection.ListenerWrapper
protected static class Connection.ListenerWrapper
A wrapper class to associate a packet filter with a listener.
Constructor Summary | |
---|---|
Connection.ListenerWrapper(PacketListener packetListener,
PacketFilter packetFilter)
Create a class which associates a packet filter with a listener. |
Method Summary | |
---|---|
void |
notifyListener(Packet packet)
Notify and process the packet listener if the filter matches the packet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Connection.ListenerWrapper(PacketListener packetListener, PacketFilter packetFilter)
packetListener
- the packet listener.packetFilter
- the associated filter or null if it listen for all packets.Method Detail |
---|
public void notifyListener(Packet packet)
packet
- the packet which was sent or received.
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |