|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unkrig.commons.net.http.NioHttpServer
public final class NioHttpServer
Implementation of an HTTP server.
NioHttpServer(InetSocketAddress, HttpClientConnectionHandler)| Constructor Summary | |
|---|---|
NioHttpServer(java.net.InetSocketAddress endpoint,
HttpClientConnectionHandler httpClientConnectionHandler)
Accepts connections on the endpoint; obtains a new Servlett from the
httpClientConnectionHandlerFactory for each accepted connection, and then calls
Servlett.handleRequest(HttpRequest) for each received request. |
|
| Method Summary | |
|---|---|
void |
start(int threadCount)
|
void |
stop()
Returns when this Stoppable has completely stopped. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NioHttpServer(java.net.InetSocketAddress endpoint,
HttpClientConnectionHandler httpClientConnectionHandler)
throws java.io.IOException
endpoint; obtains a new Servlett from the
httpClientConnectionHandlerFactory for each accepted connection, and then calls
Servlett.handleRequest(HttpRequest) for each received request.
java.io.IOException| Method Detail |
|---|
public void start(int threadCount)
NioTcpServer.start(int)public void stop()
StoppableStoppable has completely stopped.
stop in interface Stoppable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||