Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ConnectionHandlerIfc Interface Reference

Inheritance diagram for ConnectionHandlerIfc:

Inheritance graph
[legend]
List of all members.

Detailed Description

ConnectionHandlerIfc.java defines object which is responsible for handling new incoming connections.

After receiving new connection request it creates new ServerConnection for this request and new CommandHandlers.

This is very simple class now and at the moment it is not necessary even. However in future I would like to handle simple kinds of authorization and I think that this is good place for it.

Created: Thu Jan 10 15:40:53 2002

Author:
Artur Hefczyc
Version:
Revision
1.1

Definition at line 41 of file ConnectionHandlerIfc.java.

Public Methods

void handleNewConnection (Socket connection_socket, List command_handlers)
 handleNewConnection method implementation handles requests for new connections.

void handleException (Exception exc)
 handleException method should be able to handle exceptions coming from SocketListener.


Member Function Documentation

void handleException Exception    exc
 

handleException method should be able to handle exceptions coming from SocketListener.

In general it should never occur.

Parameters:
exc an Exception value is an Exception occured during listening on server socket. When it is received we should assume that SocketListener can't do his work.

Implemented in ConnectionHandlerImpl.

void handleNewConnection Socket    connection_socket,
List    command_handlers
 

handleNewConnection method implementation handles requests for new connections.

It commonly should create new instance of ConnectionServer and put there given socket and command hanlers. Additionally it can provide some authorization scheme.

Parameters:
connection_socket a Socket value is a socket to which is connected user. From this socket is given InputStream and OutputStream to allow communicate with user. If given Socket is null user is connected to standard I/O.
command_handlers a List value contains list of all defined and available command handlers. This list should be provided to ConnectionServer to provide all command to user.

Implemented in ConnectionHandlerImpl.


The documentation for this interface was generated from the following file:
Generated on Thu Dec 19 21:00:48 2002 for WTTools - Remote Console by doxygen1.3-rc2