net.directj.csf
Class ClientHandlerFactory

java.lang.Object
  |
  +--net.directj.csf.ClientHandlerFactory
Direct Known Subclasses:
ClientHandlerFactoryImpl, JLoggerClientHandlerFactory

public abstract class ClientHandlerFactory
extends java.lang.Object

This class is used to easely create clients handler. This class is used by the server implementation to create appropriate handler. A client handler is in charge of a connection with a client.

Version:
0.1.0
Author:
CARTAPANIS Alexandre <earendil@jprolog.net>

Constructor Summary
protected ClientHandlerFactory()
          Forbids direct instanciation.
 
Method Summary
abstract  ClientHandler createClientHandler(java.net.Socket _sock, Server _server)
          Creates a new ClientHandler, created by the _server server and using the _sock socket.
static ClientHandlerFactory getDefault()
          Returs the default factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientHandlerFactory

protected ClientHandlerFactory()
Forbids direct instanciation.

Method Detail

getDefault

public static ClientHandlerFactory getDefault()
Returs the default factory.

Returns:
ClientHandlerFactory - The default ClientHandlerFactory.

createClientHandler

public abstract ClientHandler createClientHandler(java.net.Socket _sock,
                                                  Server _server)
Creates a new ClientHandler, created by the _server server and using the _sock socket.

Parameters:
_sock - The socket on wich there is the connection.
_server - The server that handle the client's request.
Returns:
ClientHandler - A new client handler.


Copyright 2002 CARTAPANIS Alexandre
This page was last updated on May 10 2003