Source code: org/jabber/jabberbeans/PacketAdapter.java
1 package org.jabber.jabberbeans;
2
3 /**
4 * PacketAdapter is a convenience class - it provides do-nothing
5 * implementations of the PacketListener class, so that clients will work
6 * with an upgraded jabberbeans with new packet events.
7 *
8 * @author David Waite <a href="mailto:mass@ufl.edu"><i><mass@ufl.edu>
9 * </i></a>
10 * @author $Author: mass $
11 * @version $Revision: 1.1 $
12 */
13 public class PacketAdapter
14 implements PacketListener
15 {
16 /**
17 * called when a packet is received and has been processed into a packet.
18 * This is just a do-nothing implementation
19 *
20 * @param l Packet that has just been received.
21 */
22 public void receivedPacket(Packet l)
23 {}
24
25 /**
26 * called immediately after any packet is successfully sent. This is
27 * implemented here as a default do-nothing function.
28 *
29 * @param l Packet that has just been sent
30 */
31 public void sentPacket(Packet l)
32 {}
33 }