public class AbstractConnectionListener extends java.lang.Object implements ConnectionListener
ConnectionListener interface. This is a
convenience class which should be used in case you do not need to implement
all methods.| Constructor and Description |
|---|
AbstractConnectionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticated(XMPPConnection connection)
TODO
|
void |
connected(XMPPConnection connection)
TODO
|
void |
connectionClosed()
Notification that the connection was closed normally or that the reconnection
process has been aborted.
|
void |
connectionClosedOnError(java.lang.Exception e)
Notification that the connection was closed due to an exception.
|
void |
reconnectingIn(int seconds)
The connection will retry to reconnect in the specified number of seconds.
|
void |
reconnectionFailed(java.lang.Exception e)
An attempt to connect to the server has failed.
|
void |
reconnectionSuccessful()
The connection has reconnected successfully to the server.
|
public void connected(XMPPConnection connection)
ConnectionListenerconnected in interface ConnectionListenerpublic void authenticated(XMPPConnection connection)
ConnectionListenerauthenticated in interface ConnectionListenerpublic void connectionClosed()
ConnectionListenerconnectionClosed in interface ConnectionListenerpublic void connectionClosedOnError(java.lang.Exception e)
ConnectionListenerconnectionClosedOnError in interface ConnectionListenere - the exception.public void reconnectingIn(int seconds)
ConnectionListenerreconnectingIn in interface ConnectionListenerseconds - remaining seconds before attempting a reconnection.public void reconnectionFailed(java.lang.Exception e)
ConnectionListenerreconnectionFailed in interface ConnectionListenere - the exception that caused the reconnection to fail.public void reconnectionSuccessful()
ConnectionListenerreconnectionSuccessful in interface ConnectionListener