org.jabber.jabberbeans
Class ConnectionAdapter

java.lang.Object
  |
  +--org.jabber.jabberbeans.ConnectionAdapter
All Implemented Interfaces:
ConnectionListener, java.io.Serializable
Direct Known Subclasses:
KeepAlive.KeepAliveConnectionListener

public class ConnectionAdapter
extends java.lang.Object
implements ConnectionListener, java.io.Serializable

Convenience implementation of ConnectionListener. This is provided so that the ConnectionListener interface can be upgraded, without breaking backwards compatibility - extend ConnectionAdapter and you will gain do-nothing implementations of ConnectionListener's new events.

ConnectionListener contains descriptions of what these events actually signify.

See Also:
Serialized Form

Constructor Summary
ConnectionAdapter()
           
 
Method Summary
 void connected()
          Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0
 void connected(ConnectionEvent evt)
          Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0
 void connectFailed()
          Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0
 void connectFailed(ConnectionEvent evt)
          Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0
 void connecting()
          Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0
 void connecting(ConnectionEvent evt)
          Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0
 void connectionChanged(ConnectionEvent evt)
          connectionChanged is the most recent way to receive notification of a change in connection state.
 void disconnected()
          Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0
 void disconnected(ConnectionEvent evt)
          Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionAdapter

public ConnectionAdapter()
Method Detail

connectionChanged

public void connectionChanged(ConnectionEvent evt)
connectionChanged is the most recent way to receive notification of a change in connection state. The implementation here receives the event and broadcasts to the older deprecated methods for the time being.

Specified by:
connectionChanged in interface ConnectionListener
Parameters:
evt - a ConnectionEvent value

connected

public void connected(ConnectionEvent evt)
Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0


disconnected

public void disconnected(ConnectionEvent evt)
Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0


connecting

public void connecting(ConnectionEvent evt)
Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0


connectFailed

public void connectFailed(ConnectionEvent evt)
Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0


connected

public void connected()
Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0


disconnected

public void disconnected()
Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0


connecting

public void connecting()
Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0


connectFailed

public void connectFailed()
Deprecated. replaced by connectionChanged(ConnectionEvent), will be removed before 1.0