Class AbstractConnectionListener

  • All Implemented Interfaces:
    ConnectionListener

    @Deprecated
    public class AbstractConnectionListener
    extends java.lang.Object
    implements ConnectionListener
    Deprecated.
    use ConnectionListener instead.
    The AbstractConnectionListener class provides an empty implementation for all methods defined by the ConnectionListener interface. This is a convenience class which should be used in case you do not need to implement all methods.
    • Constructor Detail

      • AbstractConnectionListener

        public AbstractConnectionListener()
        Deprecated.
    • Method Detail

      • connected

        public void connected​(XMPPConnection connection)
        Deprecated.
        Description copied from interface: ConnectionListener
        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.

        Specified by:
        connected in interface ConnectionListener
        Parameters:
        connection - the XMPPConnection which successfully connected to its endpoint.
      • authenticated

        public void authenticated​(XMPPConnection connection,
                                  boolean resumed)
        Deprecated.
        Description copied from interface: ConnectionListener
        Notification that the connection has been authenticated.
        Specified by:
        authenticated in interface ConnectionListener
        Parameters:
        connection - the XMPPConnection which successfully authenticated.
        resumed - true if a previous XMPP session's stream was resumed.
      • connectionClosedOnError

        public void connectionClosedOnError​(java.lang.Exception e)
        Deprecated.
        Description copied from interface: ConnectionListener
        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.
        Specified by:
        connectionClosedOnError in interface ConnectionListener
        Parameters:
        e - the exception.