SK.gnome.dwarf.tcpip.rfc
Class TCPChargenHandler

java.lang.Object
  extended bySK.gnome.dwarf.GenericService
      extended bySK.gnome.dwarf.thread.ThreadService
          extended bySK.gnome.dwarf.thread.Handler
              extended bySK.gnome.dwarf.tcpip.TCPHandler
                  extended bySK.gnome.dwarf.tcpip.rfc.TCPChargenHandler
All Implemented Interfaces:
Reportable, java.lang.Runnable, Service, Stoppable

public class TCPChargenHandler
extends TCPHandler
implements Reportable

TCP-based Character Generator Service (RFC 864).


Field Summary
 
Fields inherited from class SK.gnome.dwarf.thread.ThreadService
daemon, thread
 
Fields inherited from class SK.gnome.dwarf.GenericService
initParameters, parent
 
Fields inherited from interface SK.gnome.dwarf.Service
INITIALIZED, LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_TRACE, LOG_WARN, LOG_XFER, SHUTDOWN, STARTED, STOPPED
 
Constructor Summary
TCPChargenHandler(java.lang.String name)
          Creates a new TCPChargenHandler.
 
Method Summary
protected  void handle(java.net.Socket socket)
          Handles the socket.
 java.lang.String report()
          Returns the service report.
 
Methods inherited from class SK.gnome.dwarf.tcpip.TCPHandler
handle
 
Methods inherited from class SK.gnome.dwarf.thread.Handler
enableThread, init, loop, start
 
Methods inherited from class SK.gnome.dwarf.thread.ThreadService
finish, run, setDaemon, shutdown, stop
 
Methods inherited from class SK.gnome.dwarf.GenericService
getAuthenticator, getAuthFacility, getFullName, getInitParameter, getInitParameterNames, getLogFacility, getLogger, getName, getParameters, getPrincipal, getShutdownTimeout, getState, log, log, login, logout, setAuthFacility, setInitParameters, setLogFacility, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TCPChargenHandler

public TCPChargenHandler(java.lang.String name)
Creates a new TCPChargenHandler.

Method Detail

handle

protected void handle(java.net.Socket socket)
Description copied from class: TCPHandler
Handles the socket.

The abstract method for processing the client connections. Must be overriden in order to implement a real handler. It is called directly from the TCPHandler.handle(Object) method.

Specified by:
handle in class TCPHandler

report

public java.lang.String report()
Description copied from interface: Reportable
Returns the service report.

Specified by:
report in interface Reportable
Returns:
current service state in a human-readable format


Copyright (c) 1999-2005, Gnome Ltd. All rights reserved.