protected static class AbstractXMPPConnection.ListenerWrapper extends Object
Constructor and Description |
---|
AbstractXMPPConnection.ListenerWrapper(StanzaListener packetListener,
StanzaFilter packetFilter)
Create a class which associates a stanza(/packet) filter with a listener.
|
public AbstractXMPPConnection.ListenerWrapper(StanzaListener packetListener, StanzaFilter packetFilter)
packetListener
- the stanza(/packet) listener.packetFilter
- the associated filter or null if it listen for all packets.public boolean filterMatches(Stanza packet)
public StanzaListener getListener()