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 SSLContext
private final SSLSessionInitializer
private 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) void
register
(String uriPattern, Supplier<AsyncPushConsumer> supplier) void
start()
void
start
(Http1Config http1Config) void
start
(HttpProcessor httpProcessor, Http1Config http1Config) void
start
(HttpProcessor httpProcessor, H2Config h2Config) void
void
start
(IOEventHandlerFactory handlerFactory) Methods inherited from class org.apache.hc.core5.testing.nio.AsyncRequester
connect, createIOReactor, requestSession
Methods 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
-