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 ThreadGroup
private ListenerEndpoint
private final ExceptionLogger
private final InetAddress
private final DefaultListeningIOReactor
private final IOReactorConfig
private final ExecutorService
private final int
private final NHttpServerEventHandler
private 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 TypeMethodDescriptionvoid
awaitTermination
(long timeout, TimeUnit timeUnit) void
void
start()
-
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
-