public final class NioHttpServer extends Object implements de.unkrig.commons.lang.protocol.Stoppable
| Constructor and Description |
|---|
NioHttpServer(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, de.unkrig.commons.lang.protocol.ConsumerWhichThrows) for each received
request. |
public NioHttpServer(InetSocketAddress endpoint, HttpClientConnectionHandler httpClientConnectionHandler) throws IOException
Servlett from the httpClientConnectionHandlerFactory for each accepted connection, and then calls Servlett.handleRequest(HttpRequest, de.unkrig.commons.lang.protocol.ConsumerWhichThrows) for each received
request.IOExceptionpublic void start(int threadCount)
NioTcpServer.start(int)public void stop()
stop in interface de.unkrig.commons.lang.protocol.StoppableCopyright © 2018 Arno Unkrig. All rights reserved.