com.faunos.util.net.http
Class DebugHttpServer
java.lang.Object
com.faunos.util.net.HandletServer
com.faunos.util.net.http.HttpServer
com.faunos.util.net.http.DebugHttpServer
public class DebugHttpServer
- extends HttpServer
A version of HttpServer used for debugging. This version
simply echoes what is read or written to std out.
- Author:
- Babak Farhang
| Fields inherited from class com.faunos.util.net.http.HttpServer |
app |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DebugHttpServer
public DebugHttpServer(ResponseFactory app,
InetAddress host,
int port,
ExecutorService exec)
throws IOException
- Invokes the super class's constructor.
- Throws:
IOException
DebugHttpServer
public DebugHttpServer(ResponseFactory app,
InetAddress host,
int port,
ExecutorService exec,
Logger logger)
throws IOException
- Invokes the super class's constructor.
- Throws:
IOException
inputChannel
protected ScatteringByteChannel inputChannel(SocketChannel socket)
- Wraps and returns the given socket with a
DebugInputChannel.
- Overrides:
inputChannel in class HandletServer
outputChannel
protected GatheringByteChannel outputChannel(SocketChannel socket)
- Wraps and returns the given socket with a
DebugOutputChannel.
- Overrides:
outputChannel in class HandletServer