public class HttpServer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
HttpServer.Status |
Constructor and Description |
---|
HttpServer(int port,
java.net.InetAddress ifAddress,
SocketConfig socketConfig,
javax.net.ServerSocketFactory serverSocketFactory,
HttpService httpService,
HttpConnectionFactory<? extends DefaultBHttpServerConnection> connectionFactory,
SSLServerSetupHandler sslSetupHandler,
ExceptionLogger exceptionLogger) |
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit timeUnit) |
java.net.InetAddress |
getInetAddress() |
int |
getLocalPort() |
void |
shutdown(long gracePeriod,
java.util.concurrent.TimeUnit timeUnit) |
void |
start() |
void |
stop() |
HttpServer(int port, java.net.InetAddress ifAddress, SocketConfig socketConfig, javax.net.ServerSocketFactory serverSocketFactory, HttpService httpService, HttpConnectionFactory<? extends DefaultBHttpServerConnection> connectionFactory, SSLServerSetupHandler sslSetupHandler, ExceptionLogger exceptionLogger)
public java.net.InetAddress getInetAddress()
public int getLocalPort()
public void start() throws java.io.IOException
java.io.IOException
public void stop()
public void awaitTermination(long timeout, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException
java.lang.InterruptedException
public void shutdown(long gracePeriod, java.util.concurrent.TimeUnit timeUnit)