se.sics.jipv6.http
Class HttpServer

java.lang.Object
  extended by se.sics.jipv6.http.HttpServer
All Implemented Interfaces:
Runnable, TCPListener

public class HttpServer
extends Object
implements TCPListener, Runnable


Constructor Summary
HttpServer(IPStack stack)
           
 
Method Summary
 void connectionClosed(TCPConnection connection)
           
 void newConnection(TCPConnection connection)
           
 void printStatus(PrintStream out)
           
 void registerServlet(String path, HttpServlet servlet)
           
 void run()
           
 void tcpDataReceived(TCPConnection source, TCPPacket packet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServer

public HttpServer(IPStack stack)
Method Detail

connectionClosed

public void connectionClosed(TCPConnection connection)
Specified by:
connectionClosed in interface TCPListener

newConnection

public void newConnection(TCPConnection connection)
Specified by:
newConnection in interface TCPListener

tcpDataReceived

public void tcpDataReceived(TCPConnection source,
                            TCPPacket packet)
Specified by:
tcpDataReceived in interface TCPListener

registerServlet

public void registerServlet(String path,
                            HttpServlet servlet)

run

public void run()
Specified by:
run in interface Runnable

printStatus

public void printStatus(PrintStream out)