|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
cgl.narada.util.webserver.WebServer
public class WebServer
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected Properties |
props
|
protected boolean |
s_fileEnabled
|
static Hashtable |
s_pageMap
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
WebServer()
|
|
| Method Summary | |
|---|---|
void |
destroy()
----------------------------------------------------------------- |
void |
goServer()
----------------------------------------------------------------- |
protected static void |
log(String s)
----------------------------------------------------------------- |
protected static void |
p(String s)
----------------------------------------------------------------- |
protected void |
printProps()
----------------------------------------------------------------- |
void |
run()
----------------------------------------------------------------- |
void |
setFileEnabled(boolean enabled)
----------------------------------------------------------------- Set whether file access is enabled. |
void |
setMapping(String file,
String page)
----------------------------------------------------------------- |
void |
setMapping(String file,
WebCGI cgi)
----------------------------------------------------------------- |
void |
setPort(int p)
----------------------------------------------------------------- Sets the web server port. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 |
| Field Detail |
|---|
public static Hashtable s_pageMap
protected boolean s_fileEnabled
protected Properties props
| Constructor Detail |
|---|
public WebServer()
| Method Detail |
|---|
public void setMapping(String file,
String page)
public void setMapping(String file,
WebCGI cgi)
public void setFileEnabled(boolean enabled)
public void destroy()
destroy in class Threadpublic void run()
run in interface Runnablerun in class Threadpublic void setPort(int p)
public void goServer()
throws Exception
Exceptionprotected static void p(String s)
protected static void log(String s)
protected void printProps()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||