org.jabber.jabberbeans
Interface PacketListener

All Known Subinterfaces:
ServerModule
All Known Implementing Classes:
ConnectionBean.XMLStreamMonitor, FileshareListener, Main.JTestPacketListener, PacketRebroadcaster, RosterBean.RosterPacketListener, PacketAdapter, PacketDebug, KeepAlive.KeepAlivePacketListener, SyncPacketListener, Launcher.HandshakeValidator

public interface PacketListener

PacketListener is the interface the client implements to receive notification on incoming packets.

Version:
$Revision: 1.1.1.1 $
Author:
David Waite <dwaite@jabber.com>, $Author: lucky $

Method Summary
 void receivedPacket(PacketEvent pe)
          called when a packet is received and processed.
 void sendFailed(PacketEvent pe)
          called if a packet is not successfully sent (for instance, if the connection dies while the packet is queued, or a packet is sent while disconnected).
 void sentPacket(PacketEvent pe)
          called whenever a local client sends a packet, after the sending is successful
 

Method Detail

receivedPacket

public void receivedPacket(PacketEvent pe)
called when a packet is received and processed.
Parameters:
pe - PacketEvent that has just been received.

sentPacket

public void sentPacket(PacketEvent pe)
called whenever a local client sends a packet, after the sending is successful
Parameters:
pe - PacketEvent that has just been sent

sendFailed

public void sendFailed(PacketEvent pe)
called if a packet is not successfully sent (for instance, if the connection dies while the packet is queued, or a packet is sent while disconnected).
Parameters:
pe - PacketEvent for the failed send