ro.polak.webserver
Class WebServer

java.lang.Object
  extended by java.lang.Thread
      extended by ro.polak.webserver.WebServer
All Implemented Interfaces:
java.lang.Runnable

public class WebServer
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.String COMPATIBLE_CONFIG_VERSION
           
static java.lang.String REQUEST_ALLOWED_METHODS
           
static java.text.SimpleDateFormat sdf
           
static java.lang.String SERVER_DATE
           
static java.lang.String SERVER_NAME
           
static java.lang.String SERVER_SIGNATURE
           
static java.lang.String SERVER_SMALL_SIGNATURE
           
static java.lang.String SERVER_VERSION
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WebServer()
           
 
Method Summary
static java.lang.String getConfigParam(java.lang.String attributeName)
           
static MimeType getMimeType()
           
 void listen()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SERVER_NAME

public static final java.lang.String SERVER_NAME
See Also:
Constant Field Values

SERVER_VERSION

public static final java.lang.String SERVER_VERSION
See Also:
Constant Field Values

SERVER_DATE

public static final java.lang.String SERVER_DATE
See Also:
Constant Field Values

COMPATIBLE_CONFIG_VERSION

public static final java.lang.String COMPATIBLE_CONFIG_VERSION
See Also:
Constant Field Values

SERVER_SMALL_SIGNATURE

public static final java.lang.String SERVER_SMALL_SIGNATURE
See Also:
Constant Field Values

SERVER_SIGNATURE

public static final java.lang.String SERVER_SIGNATURE
See Also:
Constant Field Values

REQUEST_ALLOWED_METHODS

public static final java.lang.String REQUEST_ALLOWED_METHODS
See Also:
Constant Field Values

sdf

public static java.text.SimpleDateFormat sdf
Constructor Detail

WebServer

public WebServer()
Method Detail

listen

public void listen()

getConfigParam

public static java.lang.String getConfigParam(java.lang.String attributeName)
Parameters:
paramName - name of the attribute
Returns:
value of specified config attribute

getMimeType

public static MimeType getMimeType()
Returns:
Config MimeType