QJCC homepage

biz.chitec.qdemo.chat.server
Class ChatLoginExecutor

java.lang.Object
  extended bybiz.chitec.quarterback.gjsa.server.CommandExecutor
      extended bybiz.chitec.qdemo.chat.server.ChatLoginExecutor

public class ChatLoginExecutor
extends CommandExecutor

The login executor for the GChat server. This executor is the first one (apart from those from the framework) which is activated for each new client. It offers only one command: The login command. As soon as the client issues that command, a new stack level on the server stack is raised containing a new executor which allows to chat.

Version:
$Id: 4cd645d38b0ea11299cca77c65068822c41247b3 $
Author:
chitec/Dirk Hillbrecht 2002. Distributed under the terms of the GNU LGPL.

Field Summary
 
Fields inherited from class biz.chitec.quarterback.gjsa.server.CommandExecutor
myserv, mythreadbase, rb
 
Constructor Summary
ChatLoginExecutor(ServerThreadBase thethreadbase)
          Constructor for the ChatLoginExecutor object
 
Method Summary
 ServerReply query(ServerRequest sq)
          The query handling method.
 
Methods inherited from class biz.chitec.quarterback.gjsa.server.CommandExecutor
getServerThreadBase, leavingActions, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChatLoginExecutor

public ChatLoginExecutor(ServerThreadBase thethreadbase)
Constructor for the ChatLoginExecutor object

Parameters:
thethreadbase - The ServerThreadBase object for this incarnation of the executor.
Method Detail

query

public ServerReply query(ServerRequest sq)
The query handling method. This is the heart of each CommandExecutor. It gets one request and has to produce one reply upon some handling of the command. This is done by a switch-case-construct within the method.

Overrides:
query in class CommandExecutor
Parameters:
sq - The request that has to be handled.
Returns:
A reply object. Null if the request could not be handled by the method.

QJCC homepage