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.HttpTestClient
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()voidconfigure(Http1Config http1Config) voidprotected voidexecute(IOEventHandlerFactory ioEventHandlerFactory) voidvoidregister(String uriPattern, Supplier<AsyncPushConsumer> supplier) voidvoidstart()voidstart(Http1Config http1Config) Deprecated.voidstart(HttpProcessor httpProcessor, Http1Config http1Config) Deprecated.voidstart(HttpProcessor httpProcessor, H2Config h2Config) Deprecated.voidDeprecated.Useconfigure(H2Config),start().voidstart(IOEventHandlerFactory handlerFactory) Deprecated.Methods inherited from class org.apache.hc.core5.testing.nio.HttpTestClient
configure, connect, connect, connect, startExecutionMethods 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
-
configure
- Since:
- 5.3
-
configure
- Since:
- 5.3
-
start
Deprecated.- Throws:
IOException
-
start
Deprecated.- Throws:
IOException
-
start
@Deprecated public void start(HttpProcessor httpProcessor, Http1Config http1Config) throws IOException Deprecated.- Throws:
IOException
-
start
Deprecated.Useconfigure(H2Config),start().- Throws:
IOException
-
start
Deprecated.- Throws:
IOException
-
start
- Specified by:
startin classHttpTestClient- Throws:
Exception
-
execute
- Throws:
IOException
-
getStatus
-
awaitShutdown
- Throws:
InterruptedException
-
initiateShutdown
public void initiateShutdown() -
shutdown
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
configure(Http1Config),start().