Smack

org.jivesoftware.smack
Class Connection.InterceptorWrapper

java.lang.Object
  extended by org.jivesoftware.smack.Connection.InterceptorWrapper
Enclosing class:
Connection

protected static class Connection.InterceptorWrapper
extends java.lang.Object

A wrapper class to associate a packet filter with an interceptor.


Constructor Summary
Connection.InterceptorWrapper(PacketInterceptor packetInterceptor, PacketFilter packetFilter)
          Create a class which associates a packet filter with an interceptor.
 
Method Summary
 boolean equals(java.lang.Object object)
           
 void notifyListener(Packet packet)
          Notify and process the packet interceptor if the filter matches the packet.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.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.

Smack

Copyright © 2003-2007 Jive Software.