no.ntnu.item.router.utilities
Class EchoHandler

java.lang.Object
  extended by no.ntnu.item.router.utilities.EchoHandler
All Implemented Interfaces:
com.sun.net.httpserver.HttpHandler

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

This is a simple handler for testing purposes. Simply echoes back a hello message
And it echoes the http header that it received

Author:
Kristian Haugene

Constructor Summary
EchoHandler()
           
 
Method Summary
 void handle(com.sun.net.httpserver.HttpExchange t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EchoHandler

EchoHandler()
Method Detail

handle

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