org.jivesoftware.smack
Class Connection.InterceptorWrapper
java.lang.Object
org.jivesoftware.smack.Connection.InterceptorWrapper
- Enclosing class:
- Connection
protected static class Connection.InterceptorWrapper
- extends Object
A wrapper class to associate a packet filter with an interceptor.
Connection.InterceptorWrapper
public Connection.InterceptorWrapper(PacketInterceptor packetInterceptor,
PacketFilter packetFilter)
- Create a class which associates a packet filter with an interceptor.
- Parameters:
packetInterceptor
- the interceptor.packetFilter
- the associated filter or null if it intercepts all packets.
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
notifyListener
public void notifyListener(Packet packet)
- Notify and process the packet interceptor if the filter matches the packet.
- Parameters:
packet
- the packet which will be sent.
Copyright © 2003-2007 Jive Software.