Package org.jivesoftware.smack
Class AbstractConnectionListener
- java.lang.Object
-
- org.jivesoftware.smack.AbstractConnectionListener
-
- All Implemented Interfaces:
ConnectionListener
@Deprecated public class AbstractConnectionListener extends Object implements ConnectionListener
Deprecated.useConnectionListenerinstead.The AbstractConnectionListener class provides an empty implementation for all methods defined by theConnectionListenerinterface. 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 voidauthenticated(XMPPConnection connection, boolean resumed)Deprecated.Notification that the connection has been authenticated.voidconnected(XMPPConnection connection)Deprecated.Notification that the connection has been successfully connected to the remote endpoint (e.g.voidconnectionClosed()Deprecated.Notification that the connection was closed normally.voidconnectionClosedOnError(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:ConnectionListenerNotification 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:
connectedin interfaceConnectionListener- Parameters:
connection- the XMPPConnection which successfully connected to its endpoint.
-
authenticated
public void authenticated(XMPPConnection connection, boolean resumed)
Deprecated.Description copied from interface:ConnectionListenerNotification that the connection has been authenticated.- Specified by:
authenticatedin 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:ConnectionListenerNotification that the connection was closed normally.- Specified by:
connectionClosedin interfaceConnectionListener
-
connectionClosedOnError
public void connectionClosedOnError(Exception e)
Deprecated.Description copied from interface:ConnectionListenerNotification 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:
connectionClosedOnErrorin interfaceConnectionListener- Parameters:
e- the exception.
-
-