QJCC homepage

biz.chitec.quarterback.gjsa.server
Class ServerThreadInitiator

java.lang.Object
  extended bybiz.chitec.quarterback.gjsa.server.ServerThreadInitiator

public class ServerThreadInitiator
extends java.lang.Object

Initiator/Factory of a new thread for GJSA servers. This class' only method is called by GJSAServer when a new connection has to be served. Normally, it returns a ServerThreadBase object, but server implementations may override this to use other connection handlers.

Version:
$Id: 015c966ba5d4a221cf6296efb2fded0efda99249 $
Author:
Dirk Hillbrecht 1998-2000, chitec/Dirk Hillbrecht 2000,2001,2002. Distributed under the terms of the GNU LGPL.
See Also:
GJSAServer, ServerThreadBase, ServerThreadHandler

Constructor Summary
ServerThreadInitiator()
           
 
Method Summary
 ServerThreadHandler getServerThreadHandler(GJSAServer mserv, java.net.Socket clientsocket, int priority, Vulture v, boolean objx, boolean encx)
          Returns a new handler for a connection to a client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerThreadInitiator

public ServerThreadInitiator()
Method Detail

getServerThreadHandler

public ServerThreadHandler getServerThreadHandler(GJSAServer mserv,
                                                  java.net.Socket clientsocket,
                                                  int priority,
                                                  Vulture v,
                                                  boolean objx,
                                                  boolean encx)
                                           throws java.io.IOException,
                                                  java.sql.SQLException
Returns a new handler for a connection to a client. This default implementation returns a ServerThreadBase object.

Throws:
java.io.IOException - Any error while instanciating the ServerThreadHandler
java.sql.SQLException - Any error while instanciating the ServerThreadHandler

QJCC homepage