org.jabber.jabberbeans.serverside
Class Launcher.HandshakeValidator

java.lang.Object
  |
  +--org.jabber.jabberbeans.serverside.Launcher.HandshakeValidator
Enclosing class:
Launcher

private class Launcher.HandshakeValidator
extends java.lang.Object
implements PacketListener

HandshakeValidator does validation of a key sent incoming, for instance on a base_connect.

Author:
<dwaite@jabber.com>
See Also:
PacketListener

Field Summary
private  boolean bValid
           
private  java.lang.String validResponse
           
 
Constructor Summary
Launcher.HandshakeValidator()
           
 
Method Summary
 boolean isValid()
           
 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
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

validResponse

private java.lang.String validResponse

bValid

private boolean bValid
Constructor Detail

Launcher.HandshakeValidator

public Launcher.HandshakeValidator()
Method Detail

isValid

public boolean isValid()

receivedPacket

public void receivedPacket(PacketEvent pe)
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.

sentPacket

public void sentPacket(PacketEvent pe)
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

sendFailed

public void sendFailed(PacketEvent pe)
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