Package org.apache.hc.core5.testing.nio
Class H2TestClient
java.lang.Object
org.apache.hc.core5.testing.nio.IOReactorExecutor<DefaultConnectingIOReactor>
org.apache.hc.core5.testing.nio.AsyncRequester
org.apache.hc.core5.testing.nio.H2TestClient
- All Implemented Interfaces:
AutoCloseable,ConnectionInitiator
-
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<AsyncPushConsumer>> private final SSLContextprivate final SSLSessionInitializerprivate final SSLSessionVerifier -
Constructor Summary
ConstructorsConstructorDescriptionH2TestClient(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) -
Method Summary
Modifier and TypeMethodDescriptionconnect(HttpHost host, Timeout timeout, FutureCallback<ClientSessionEndpoint> callback) voidregister(String uriPattern, Supplier<AsyncPushConsumer> supplier) voidstart()voidstart(Http1Config http1Config) voidstart(HttpProcessor httpProcessor, Http1Config http1Config) voidstart(HttpProcessor httpProcessor, H2Config h2Config) voidvoidstart(IOEventHandlerFactory handlerFactory) Methods inherited from class org.apache.hc.core5.testing.nio.AsyncRequester
connect, createIOReactor, requestSessionMethods inherited from class org.apache.hc.core5.testing.nio.IOReactorExecutor
awaitShutdown, close, execute, getStatus, initiateShutdown, reactor, shutdown
-
Field Details
-
sslContext
-
sslSessionInitializer
-
sslSessionVerifier
-
registry
-
-
Constructor Details
-
H2TestClient
public H2TestClient(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) throws IOException - Throws:
IOException
-
H2TestClient
- Throws:
IOException
-
-
Method Details
-
register
-
start
- Throws:
IOException
-
start
- Throws:
IOException
-
start
- Throws:
IOException
-
start
- Throws:
IOException
-
start
- Throws:
IOException
-
start
- Throws:
Exception
-
connect
public Future<ClientSessionEndpoint> connect(HttpHost host, Timeout timeout, FutureCallback<ClientSessionEndpoint> callback) -
connect
-
connect
-