Class HttpServer
java.lang.Object
org.apache.http.impl.nio.bootstrap.HttpServer
- Since:
- 4.4
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NHttpConnectionFactory<? extends DefaultNHttpServerConnection> private final ThreadGroupprivate ListenerEndpointprivate final ExceptionLoggerprivate final InetAddressprivate final DefaultListeningIOReactorprivate final IOReactorConfigprivate final ExecutorServiceprivate final intprivate final NHttpServerEventHandlerprivate final AtomicReference<HttpServer.Status> -
Constructor Summary
ConstructorsConstructorDescriptionHttpServer(int port, InetAddress ifAddress, IOReactorConfig ioReactorConfig, NHttpServerEventHandler serverEventHandler, NHttpConnectionFactory<? extends DefaultNHttpServerConnection> connectionFactory, ExceptionLogger exceptionLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitTermination(long timeout, TimeUnit timeUnit) voidvoidstart()
-
Field Details
-
port
private final int port -
ifAddress
-
ioReactorConfig
-
serverEventHandler
-
connectionFactory
-
exceptionLogger
-
listenerExecutorService
-
dispatchThreads
-
status
-
ioReactor
-
endpoint
-
-
Constructor Details
-
HttpServer
HttpServer(int port, InetAddress ifAddress, IOReactorConfig ioReactorConfig, NHttpServerEventHandler serverEventHandler, NHttpConnectionFactory<? extends DefaultNHttpServerConnection> connectionFactory, ExceptionLogger exceptionLogger)
-
-
Method Details
-
getEndpoint
-
start
- Throws:
IOException
-
awaitTermination
- Throws:
InterruptedException
-
shutdown
-