|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ntnu.item.router.utilities.WebServer
public class WebServer
This is the main class for a web server. We use sun web server. NB: You need to change build path to include JRE library from java6-sun instead of the openJdk The class starts a web server and has a corresponding handler for every context. The server will be run as a background thread.
Field Summary | |
---|---|
(package private) java.net.InetSocketAddress |
addr
|
(package private) com.sun.net.httpserver.HttpServer |
server
|
Constructor Summary | |
---|---|
WebServer(ServiceSessionBank serviceBank)
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final java.net.InetSocketAddress addr
final com.sun.net.httpserver.HttpServer server
Constructor Detail |
---|
public WebServer(ServiceSessionBank serviceBank) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |