com.funambol.util
Interface ConnectionListener

All Known Implementing Classes:
BasicConnectionListener

public interface ConnectionListener

Interface used to notify the connection request and response status It can be implemented to create rich client connection listeners


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 is succesfully opened
 boolean isConnectionConfigurationAllowed(java.lang.String configDescription)
          Notify that a connection will use a particular parameters configuration and ask if they are allowed (generally implemented on client level to ask the user for this configuration permission)
 void requestWritten()
          Notify that the request was succesfully written on the connection stream
 void responseReceived()
          Notify that a response related to the sent request was received
 

Method Detail

isConnectionConfigurationAllowed

boolean isConnectionConfigurationAllowed(java.lang.String configDescription)
Notify that a connection will use a particular parameters configuration and ask if they are allowed (generally implemented on client level to ask the user for this configuration permission)

Parameters:
configDescription - is the description of the configuration to be used
Returns:
true if the configuration usage is allowed, flase otherwise

connectionOpened

void connectionOpened()
Notify that a connection is succesfully opened


requestWritten

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


responseReceived

void responseReceived()
Notify that a response related to the sent request was received


connectionClosed

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


connectionConfigurationChanged

void connectionConfigurationChanged()
Notify that the connection configuration is changed



Copyright © 2001-2009 Funambol.