Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ConnectionHandlerImpl Class Reference

Inheritance diagram for ConnectionHandlerImpl:

Inheritance graph
[legend]
Collaboration diagram for ConnectionHandlerImpl:

Collaboration graph
[legend]
List of all members.

Detailed Description

ConnectionHandlerImpl.java contains current, basic implementation of ConnectionHandlerIfc.

It creates ConnectionServer for all incoming connection requests from users.

At the moment it is very simple implementation which creates ConnectionServer in the simplest possible way, defines no authorization and no smart Exception handling.<br/> Next version will be more sofisticated if necessary. It depends on other developers requests.

Created: Thu Jan 10 15:55:11 2002

Author:
Artur Hefczyc
Version:
Revision
1.1
See also:
ConnectionHandlerIfc

Definition at line 50 of file ConnectionHandlerImpl.java.

Public Methods

void handleNewConnection (Socket connection_socket, List command_handlers)
 handleNewConnection method performs creating new ConnectionServer instance.

void handleException (Exception e)
 handleException method do nothing.


Member Function Documentation

void handleException Exception    e [inline]
 

handleException method do nothing.

At the moment it simply ignores all occured Exceptions.

Parameters:
e an Exception value contains Exception occured in SocketListener.

Implements ConnectionHandlerIfc.

Definition at line 95 of file ConnectionHandlerImpl.java.

void handleNewConnection Socket    connection_socket,
List    command_handlers
[inline]
 

handleNewConnection method performs creating new ConnectionServer instance.

At the moment it do nothing more than just creating new ConnectionServer object and put to it Socket and list of CommandhandlersIfc implementations. Next version will support some authorizations (is it really necessary?) and creating console localy - connected to standard I/O.

I am going to redesign and reimplement it a little bit in next version. This interface will not change. I will change only ConnectionServer to allow create server which is not connected to socket. It looks like ConnectionServer can do its work also as standard command line console/user_interface.

Parameters:
connection_socket a Socket value client Socket where client is connected.
command_handlers a List value contains list of available command handlers implementations.

Implements ConnectionHandlerIfc.

Definition at line 70 of file ConnectionHandlerImpl.java.


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