protected static class AbstractXMPPConnection.InterceptorWrapper extends Object
Constructor and Description |
---|
AbstractXMPPConnection.InterceptorWrapper(StanzaListener packetInterceptor,
StanzaFilter packetFilter)
Create a class which associates a stanza(/packet) filter with an interceptor.
|
public AbstractXMPPConnection.InterceptorWrapper(StanzaListener packetInterceptor, StanzaFilter packetFilter)
packetInterceptor
- the interceptor.packetFilter
- the associated filter or null if it intercepts all packets.public boolean filterMatches(Stanza packet)
public StanzaListener getInterceptor()