no.ntnu.vegare.visualizer.server.background
Class RequestHandler

java.lang.Object
  extended by no.ntnu.vegare.visualizer.server.background.RequestHandler
All Implemented Interfaces:
com.sun.net.httpserver.HttpHandler

public class RequestHandler
extends java.lang.Object
implements com.sun.net.httpserver.HttpHandler

An implementation of the JAX-WS HTTP handler. Launched in a separate thread when an incoming request occurs, returns JSON incidents or an error message, as specified by the report.

Author:
vegare

Constructor Summary
RequestHandler(LogDatabase db)
           
 
Method Summary
 void handle(com.sun.net.httpserver.HttpExchange ex)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestHandler

public RequestHandler(LogDatabase db)
Method Detail

handle

public void handle(com.sun.net.httpserver.HttpExchange ex)
            throws java.io.IOException
Specified by:
handle in interface com.sun.net.httpserver.HttpHandler
Throws:
java.io.IOException