Package org.apache.hc.core5.testing.nio
Class H2TestClient
java.lang.Object
org.apache.hc.core5.testing.nio.AsyncRequester
org.apache.hc.core5.testing.nio.H2TestClient
- All Implemented Interfaces:
AutoCloseable,ConnectionInitiator
-
Constructor Summary
ConstructorsConstructorDescriptionH2TestClient(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitShutdown(TimeValue waitTime) voidclose()connect(HttpHost host, Timeout timeout, FutureCallback<ClientSessionEndpoint> callback) protected voidexecute(IOEventHandlerFactory ioEventHandlerFactory) voidvoidregister(String uriPattern, Supplier<AsyncPushConsumer> supplier) voidvoidstart()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, requestSession
-
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
-
execute
- Throws:
IOException
-
getStatus
-
awaitShutdown
- Throws:
InterruptedException
-
initiateShutdown
public void initiateShutdown() -
shutdown
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-