| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
void |
start(int threadCount) |
void |
stop()
Returns when this
Stoppable has completely stopped. |
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.IOExceptionpublic void start(int threadCount)
NioTcpServer.start(int)