Interface ConnectionListener

    • Method Detail

      • connected

        default void connected​(XMPPConnection connection)
        Notification that the connection has been successfully connected to the remote endpoint (e.g. the XMPP server).

        Note that the connection is likely not yet authenticated and therefore only limited operations like registering an account may be possible.

        Parameters:
        connection - the XMPPConnection which successfully connected to its endpoint.
      • authenticated

        default void authenticated​(XMPPConnection connection,
                                   boolean resumed)
        Notification that the connection has been authenticated.
        Parameters:
        connection - the XMPPConnection which successfully authenticated.
        resumed - true if a previous XMPP session's stream was resumed.
      • connectionClosed

        default void connectionClosed()
        Notification that the connection was closed normally.
      • connectionClosedOnError

        default void connectionClosedOnError​(Exception e)
        Notification that the connection was closed due to an exception. When abruptly disconnected it is possible for the connection to try reconnecting to the server.
        Parameters:
        e - the exception.