Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jabber.jabberbeans
Class PacketAdapter  view PacketAdapter download PacketAdapter.java

java.lang.Object
  extended byorg.jabber.jabberbeans.PacketAdapter
All Implemented Interfaces:
PacketListener

public class PacketAdapter
extends java.lang.Object
implements PacketListener

PacketAdapter is a convenience class - it provides do-nothing implementations of the PacketListener class, so that clients will work with an upgraded jabberbeans with new packet events.

Version:
$Revision: 1.1 $

Constructor Summary
PacketAdapter()
           
 
Method Summary
 void receivedPacket(Packet l)
          called when a packet is received and has been processed into a packet.
 void sentPacket(Packet l)
          called immediately after any packet is successfully sent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PacketAdapter

public PacketAdapter()
Method Detail

receivedPacket

public void receivedPacket(Packet l)
called when a packet is received and has been processed into a packet. This is just a do-nothing implementation

Specified by:
receivedPacket in interface PacketListener

sentPacket

public void sentPacket(Packet l)
called immediately after any packet is successfully sent. This is implemented here as a default do-nothing function.

Specified by:
sentPacket in interface PacketListener