java.lang.Object
org.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 $
|
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 |
PacketAdapter
public PacketAdapter()
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