public interface ConnectionListener
| Modifier and Type | Method and Description |
|---|---|
default void |
authenticated(XMPPConnection connection,
boolean resumed)
Notification that the connection has been authenticated.
|
default void |
connected(XMPPConnection connection)
Notification that the connection has been successfully connected to the remote endpoint (e.g.
|
default void |
connecting(XMPPConnection connection)
Notification that the connection is in the process of connecting.
|
default void |
connectionClosed()
Notification that the connection was closed normally.
|
default void |
connectionClosedOnError(java.lang.Exception e)
Notification that the connection was closed due to an exception.
|
default void connecting(XMPPConnection connection)
AbstractXMPPConnection.connect() is executed.connection - connectiondefault void connected(XMPPConnection connection)
Note that the connection is likely not yet authenticated and therefore only limited operations like registering an account may be possible.
connection - the XMPPConnection which successfully connected to its endpoint.default void authenticated(XMPPConnection connection, boolean resumed)
connection - the XMPPConnection which successfully authenticated.resumed - true if a previous XMPP session's stream was resumed.default void connectionClosed()
default void connectionClosedOnError(java.lang.Exception e)
e - the exception.