TcpServer and pass it an HttpClientConnectionHandler@Deprecated public final class HttpServer extends java.lang.Object implements RunnableWhichThrows<java.io.IOException>, Stoppable
| Constructor and Description |
|---|
HttpServer(java.net.InetSocketAddress endpoint,
HttpClientConnectionHandler httpClientConnectionHandler)
Deprecated.
This
HttpServer will accept connections on the endpoint and will handle each with the
httpClientConnectionHandler. |
HttpServer(java.net.InetSocketAddress endpoint,
javax.net.ssl.SSLContext sslContext,
HttpClientConnectionHandler httpClientConnectionHandler)
Deprecated.
This
HttpServer will accept secure (HTTPS) connections on the endpoint and will handle each
with the httpClientConnectionHandler. |
| Modifier and Type | Method and Description |
|---|---|
java.net.InetSocketAddress |
getEndpointAddress()
Deprecated.
|
void |
run()
Deprecated.
"To run" an instance means to call this method and wait until it returns.
|
void |
stop()
Deprecated.
Returns when this
Stoppable has completely stopped. |
public HttpServer(java.net.InetSocketAddress endpoint,
HttpClientConnectionHandler httpClientConnectionHandler)
throws java.io.IOException
HttpServer will accept connections on the endpoint and will handle each with the
httpClientConnectionHandler.endpoint - The InetAddress and local port the server will bind to; InetSocketAddress.InetSocketAddress(int) will accept connections on any/all local addresses;
port number zero will pick an ephemeral portjava.io.IOExceptionpublic HttpServer(java.net.InetSocketAddress endpoint,
javax.net.ssl.SSLContext sslContext,
HttpClientConnectionHandler httpClientConnectionHandler)
throws java.io.IOException
HttpServer will accept secure (HTTPS) connections on the endpoint and will handle each
with the httpClientConnectionHandler.endpoint - The InetAddress and local port the server will bind to; InetSocketAddress.InetSocketAddress(int) will accept connections on any/all local addresses;
port number zero will pick an ephemeral portjava.io.IOExceptionpublic void run()
throws java.io.IOException
RunnableWhichThrowsrun in interface RunnableWhichThrows<java.io.IOException>java.io.IOExceptionpublic void stop()
StoppableStoppable has completely stopped.public java.net.InetSocketAddress getEndpointAddress()
TcpServer.getEndpointAddress()