|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.lancs.relate.gateways.services.config.classServer.HTTPServer
public class HTTPServer
This class creates a simple multithreaded web server. Sources: http://java.sun.com/developer/technicalArticles/Networking/Webserver/
| Field Summary | |
|---|---|
protected static java.util.Properties |
props
|
| Constructor Summary | |
|---|---|
HTTPServer(int port,
java.net.InetAddress bindingAddress)
|
|
| Method Summary | |
|---|---|
protected static void |
loadProps()
load www-server.properties from java.home |
protected void |
log(java.lang.String s)
Print to the log file |
protected static void |
p(java.lang.String s)
Print to stdout |
protected static void |
printProps()
Prints the properties |
void |
run()
Starts the webserver's request/response loop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.util.Properties props
| Constructor Detail |
|---|
public HTTPServer(int port,
java.net.InetAddress bindingAddress)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnableprotected static void p(java.lang.String s)
protected void log(java.lang.String s)
protected static void loadProps()
throws java.io.IOException
java.io.IOExceptionprotected static void printProps()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||