protected static class Connection.ListenerWrapper extends Object
| Constructor and Description |
|---|
Connection.ListenerWrapper(PacketListener packetListener,
PacketFilter packetFilter)
Create a class which associates a packet filter with a listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
notifyListener(org.xmpp.packet.Packet packet)
Notify and process the packet listener if the filter matches the
packet.
|
public Connection.ListenerWrapper(PacketListener packetListener, PacketFilter packetFilter)
packetListener - the packet listener.packetFilter - the associated filter or null if it listen for all
packets.Copyright © 2014. All Rights Reserved.