QJCC homepage

biz.chitec.quarterback.gjsa.server
Interface ServerThreadHandler


public interface ServerThreadHandler

Generic interface for connection handler objects. Within the core GJSA, this interface is only implemented by ServerThreadBase. Custom server implementation, however, may use their own connection handlers, which indeed must implement this interface.

Version:
$Id: a7442d40ca1cc88e6c2966a83b7c28fdf1489b5b $
Author:
Dirk Hillbrecht 1997-1999, chitec/Dirk Hillbrecht 2000. Distributed under the terms of the GNU LGPL.
See Also:
ServerThreadBase

Method Summary
 void close()
          Closes this handler.
 java.lang.Thread getBaseThread()
          Returns the underlying Thread object for this handler.
 int getConnNr()
          Returns the connection number of this handler.
 java.util.Map getData()
          Return complete data set for this connection
 boolean getRemovementLogging()
          Returns whether this ServerThreadHandler will log its removement.
 java.net.Socket getSocket()
          Returns the underlying Socket object for this handler.
 boolean isEncrypted()
          Returns whether this handler has an encrypted connection
 boolean isObjectTransferring()
          Returns whether this handler transfers Java objects through the connection.
 boolean mayBeClosed()
          Asks whether this handler can be closed.
 

Method Detail

getRemovementLogging

public boolean getRemovementLogging()
Returns whether this ServerThreadHandler will log its removement.


getBaseThread

public java.lang.Thread getBaseThread()
Returns the underlying Thread object for this handler.


getSocket

public java.net.Socket getSocket()
Returns the underlying Socket object for this handler.


getConnNr

public int getConnNr()
Returns the connection number of this handler. Connection numbers are unique over the whole runtime of the server.


close

public void close()
Closes this handler.


mayBeClosed

public boolean mayBeClosed()
Asks whether this handler can be closed.


isEncrypted

public boolean isEncrypted()
Returns whether this handler has an encrypted connection


isObjectTransferring

public boolean isObjectTransferring()
Returns whether this handler transfers Java objects through the connection.


getData

public java.util.Map getData()
Return complete data set for this connection


QJCC homepage