org.jconfig.server
Class BaseServer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.jconfig.server.BaseServer
All Implemented Interfaces:
java.lang.Runnable

public class BaseServer
extends java.lang.Thread

This class implements a simple server. Every request to this server will be handled by the defined ProtocolHandler.

Author:
Andreas Mecky andreasmecky@yahoo.de, Terry Dye terrydye@yahoo.com

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BaseServer(int port, java.lang.Class handler, ServerContext serverContext)
           
 
Method Summary
 void run()
           
 void setAsDaemon(boolean isDaemon)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseServer

public BaseServer(int port,
                  java.lang.Class handler,
                  ServerContext serverContext)
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread

shutdown

public void shutdown()

setAsDaemon

public void setAsDaemon(boolean isDaemon)


Copyright © 2001-2003 Andreas Mecky, Terry Dye. All Rights Reserved.