Package org.apache.hc.core5.testing.nio
Class Http1TestServer
java.lang.Object
org.apache.hc.core5.testing.nio.IOReactorExecutor<DefaultListeningIOReactor>
org.apache.hc.core5.testing.nio.AsyncServer
org.apache.hc.core5.testing.nio.Http1TestServer
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hc.core5.testing.nio.IOReactorExecutor
IOReactorExecutor.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RequestHandlerRegistry<Supplier<AsyncServerExchangeHandler>> private final SSLContextprivate final SSLSessionInitializerprivate final SSLSessionVerifier -
Constructor Summary
ConstructorsConstructorDescriptionHttp1TestServer(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(String uriPattern, Supplier<AsyncServerExchangeHandler> supplier) <T> voidregister(String uriPattern, AsyncServerRequestHandler<T> requestHandler) start()start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config) start(HttpProcessor httpProcessor, Http1Config http1Config) start(IOEventHandlerFactory handlerFactory) Methods inherited from class org.apache.hc.core5.testing.nio.AsyncServer
createIOReactor, getEndpoints, listenMethods inherited from class org.apache.hc.core5.testing.nio.IOReactorExecutor
awaitShutdown, close, execute, getStatus, initiateShutdown, reactor, shutdown
-
Field Details
-
registry
-
sslContext
-
sslSessionInitializer
-
sslSessionVerifier
-
-
Constructor Details
-
Http1TestServer
public Http1TestServer(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) throws IOException - Throws:
IOException
-
Http1TestServer
- Throws:
IOException
-
-
Method Details
-
register
-
register
-
start
- Throws:
Exception
-
start
public InetSocketAddress start(HttpProcessor httpProcessor, Decorator<AsyncServerExchangeHandler> exchangeHandlerDecorator, Http1Config http1Config) throws Exception - Throws:
Exception
-
start
public InetSocketAddress start(HttpProcessor httpProcessor, Http1Config http1Config) throws Exception - Throws:
Exception
-
start
- Throws:
Exception
-