Package org.jivesoftware.smack
Class AbstractConnectionListener
- java.lang.Object
-
- org.jivesoftware.smack.AbstractConnectionListener
-
- All Implemented Interfaces:
ConnectionListener
@Deprecated public class AbstractConnectionListener extends java.lang.Object implements ConnectionListener
Deprecated.useConnectionListener
instead.The AbstractConnectionListener class provides an empty implementation for all methods defined by theConnectionListener
interface. This is a convenience class which should be used in case you do not need to implement all methods.
-
-
Constructor Summary
Constructors Constructor Description AbstractConnectionListener()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
authenticated(XMPPConnection connection, boolean resumed)
Deprecated.Notification that the connection has been authenticated.void
connected(XMPPConnection connection)
Deprecated.Notification that the connection has been successfully connected to the remote endpoint (e.g.void
connectionClosed()
Deprecated.Notification that the connection was closed normally.void
connectionClosedOnError(java.lang.Exception e)
Deprecated.Notification that the connection was closed due to an exception.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.ConnectionListener
connecting
-
-
-
-
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 interfaceConnectionListener
- 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 interfaceConnectionListener
- Parameters:
connection
- the XMPPConnection which successfully authenticated.resumed
- true if a previous XMPP session's stream was resumed.
-
connectionClosed
public void connectionClosed()
Deprecated.Description copied from interface:ConnectionListener
Notification that the connection was closed normally.- Specified by:
connectionClosed
in interfaceConnectionListener
-
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 interfaceConnectionListener
- Parameters:
e
- the exception.
-
-