protected static class XMPPConnection.ListenerWrapper
extends java.lang.Object
| Constructor and Description |
|---|
XMPPConnection.ListenerWrapper(PacketListener packetListener,
PacketFilter packetFilter)
Create a class which associates a packet filter with a listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
notifyListener(Packet packet)
Notify and process the packet listener if the filter matches the packet.
|
public XMPPConnection.ListenerWrapper(PacketListener packetListener, PacketFilter packetFilter)
packetListener - the packet listener.packetFilter - the associated filter or null if it listen for all packets.public void notifyListener(Packet packet) throws SmackException.NotConnectedException
packet - the packet which was sent or received.SmackException.NotConnectedException