|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionHandler
Interface for a connection handler. an FTP server needs a way to manage all the connections opened.
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 |
---|
void doConnection(java.net.Socket s)
s
- - socket.Connection[] getConnections()
void notifyDone(Connection connection)
connection
- - the connection to be closed.void setParameter(java.lang.String name, java.lang.String value)
name
- - parameter namevalue
- - parameter valuevoid startService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |