no.ntnu.item.router.utilities
Class WebServer

java.lang.Object
  extended by no.ntnu.item.router.utilities.WebServer

public class WebServer
extends java.lang.Object

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.

Author:
Kristian Haugene

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

addr

final java.net.InetSocketAddress addr

server

final com.sun.net.httpserver.HttpServer server
Constructor Detail

WebServer

public WebServer(ServiceSessionBank serviceBank)
          throws java.io.IOException
Throws:
java.io.IOException