org.jabber.jabberbeans
Class ConnectionBean.XMLStreamMonitor

java.lang.Object
  |
  +--org.jabber.jabberbeans.ConnectionBean.XMLStreamMonitor
Enclosing class:
ConnectionBean

public class ConnectionBean.XMLStreamMonitor
extends java.lang.Object
implements PacketListener


Constructor Summary
ConnectionBean.XMLStreamMonitor()
           
 
Method Summary
 void receivedPacket(PacketEvent packetEvent)
          called when a packet is received and processed.
 void sendFailed(PacketEvent packetEvent)
          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 packetEvent)
          called whenever a local client sends a packet, after the sending is successful
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ConnectionBean.XMLStreamMonitor

public ConnectionBean.XMLStreamMonitor()
Method Detail

sentPacket

public void sentPacket(PacketEvent packetEvent)
Description copied from interface: PacketListener
called whenever a local client sends a packet, after the sending is successful
Specified by:
sentPacket in interface PacketListener
Tags copied from interface: PacketListener
Parameters:
pe - PacketEvent that has just been sent

receivedPacket

public void receivedPacket(PacketEvent packetEvent)
Description copied from interface: PacketListener
called when a packet is received and processed.
Specified by:
receivedPacket in interface PacketListener
Tags copied from interface: PacketListener
Parameters:
pe - PacketEvent that has just been received.

sendFailed

public void sendFailed(PacketEvent packetEvent)
Description copied from interface: PacketListener
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).
Specified by:
sendFailed in interface PacketListener
Tags copied from interface: PacketListener
Parameters:
pe - PacketEvent for the failed send