com.funambol.util
Class BasicConnectionListener

java.lang.Object
  extended by com.funambol.util.BasicConnectionListener
All Implemented Interfaces:
ConnectionListener

public class BasicConnectionListener
extends java.lang.Object
implements ConnectionListener

the simplest conneection handler ever. just save the config


Constructor Summary
BasicConnectionListener()
           
 
Method Summary
 void connectionClosed()
          Notify that a previously opened connection has been closed
 void connectionConfigurationChanged()
          Notify that the connection configuration is changed
 void connectionOpened()
          Notify that a connection was succesfully opened
 boolean isConnectionConfigurationAllowed(java.lang.String config)
          Check if the connection configuration is allowed
 void requestWritten()
          Notify that a data request was succesfully written on the connection stream
 void responseReceived()
          Notify that a response was received after the request was sent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicConnectionListener

public BasicConnectionListener()
Method Detail

isConnectionConfigurationAllowed

public boolean isConnectionConfigurationAllowed(java.lang.String config)
Check if the connection configuration is allowed

Specified by:
isConnectionConfigurationAllowed in interface ConnectionListener
Parameters:
config - is the configuration to be checked
Returns:
true in the basic implementation because no real check is performed on the configuration permission

connectionOpened

public void connectionOpened()
Notify that a connection was succesfully opened

Specified by:
connectionOpened in interface ConnectionListener

requestWritten

public void requestWritten()
Notify that a data request was succesfully written on the connection stream

Specified by:
requestWritten in interface ConnectionListener

responseReceived

public void responseReceived()
Notify that a response was received after the request was sent

Specified by:
responseReceived in interface ConnectionListener

connectionClosed

public void connectionClosed()
Notify that a previously opened connection has been closed

Specified by:
connectionClosed in interface ConnectionListener

connectionConfigurationChanged

public void connectionConfigurationChanged()
Description copied from interface: ConnectionListener
Notify that the connection configuration is changed

Specified by:
connectionConfigurationChanged in interface ConnectionListener


Copyright © 2001-2009 Funambol.