org.olat.instantMessaging
Class XMPPConnListener

java.lang.Object
  extended by org.olat.instantMessaging.XMPPConnListener
All Implemented Interfaces:
org.jivesoftware.smack.ConnectionListener

public class XMPPConnListener
extends java.lang.Object
implements org.jivesoftware.smack.ConnectionListener

Initial Date: 21.02.2005 Helper Class for connection monitoring of instant messaging connection

Author:
guido

Constructor Summary
XMPPConnListener(InstantMessagingClient imc)
           
 
Method Summary
 void connectionClosed()
          called on normal disconnect
 void connectionClosedOnError(java.lang.Exception e)
          called automatically when server crashes
 void reconnectingIn(int arg0)
           
 void reconnectionFailed(java.lang.Exception arg0)
           
 void reconnectionSuccessful()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMPPConnListener

public XMPPConnListener(InstantMessagingClient imc)
Method Detail

connectionClosed

public void connectionClosed()
called on normal disconnect

Specified by:
connectionClosed in interface org.jivesoftware.smack.ConnectionListener
See Also:
ConnectionListener.connectionClosed()

connectionClosedOnError

public void connectionClosedOnError(java.lang.Exception e)
called automatically when server crashes

Specified by:
connectionClosedOnError in interface org.jivesoftware.smack.ConnectionListener
See Also:
ConnectionListener.connectionClosedOnError(java.lang.Exception)

reconnectingIn

public void reconnectingIn(int arg0)
Specified by:
reconnectingIn in interface org.jivesoftware.smack.ConnectionListener

reconnectionFailed

public void reconnectionFailed(java.lang.Exception arg0)
Specified by:
reconnectionFailed in interface org.jivesoftware.smack.ConnectionListener

reconnectionSuccessful

public void reconnectionSuccessful()
Specified by:
reconnectionSuccessful in interface org.jivesoftware.smack.ConnectionListener