com.Prominic.jFTPd
Interface ConnectionHandler

All Known Implementing Classes:
FTPHandler

public interface ConnectionHandler

Interface for a connection handler. an FTP server needs a way to manage all the connections opened.

Author:
VIulian

Method Summary
 void doConnection(java.net.Socket s)
          Starts up a connection object on the given socket.
 Connection[] getConnections()
          Returns all the current conenctions.
 void notifyDone(Connection connection)
          Called when a client disconnects and a conenction must be closed.
 void setParameter(java.lang.String name, java.lang.String value)
          Sets a configuration parameter for the connection handler.
 void startService()
          Starts the handler.
 

Method Detail

doConnection

void doConnection(java.net.Socket s)
Starts up a connection object on the given socket.

Parameters:
s - - socket.

getConnections

Connection[] getConnections()
Returns all the current conenctions.

Returns:
- array with all the openend connections.

notifyDone

void notifyDone(Connection connection)
Called when a client disconnects and a conenction must be closed.

Parameters:
connection - - the connection to be closed.

setParameter

void setParameter(java.lang.String name,
                  java.lang.String value)
Sets a configuration parameter for the connection handler. It is used to pass key=value pairs from the configuration file.

Parameters:
name - - parameter name
value - - parameter value

startService

void startService()
Starts the handler.