Package org.apache.hc.core5.testing.nio
Class Http1TestClient
java.lang.Object
org.apache.hc.core5.testing.nio.AsyncRequester
org.apache.hc.core5.testing.nio.HttpTestClient
org.apache.hc.core5.testing.nio.Http1TestClient
- All Implemented Interfaces:
AutoCloseable,ConnectionInitiator
-
Constructor Summary
ConstructorsConstructorDescriptionHttp1TestClient(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitShutdown(TimeValue waitTime) voidclose()voidconfigure(Http1Config http1Config) voidconfigure(NHttpMessageParserFactory<HttpResponse> responseParserFactory) voidconfigure(NHttpMessageWriterFactory<HttpRequest> requestWriterFactory) protected voidexecute(IOEventHandlerFactory ioEventHandlerFactory) voidvoidvoidstart()voidstart(Http1Config http1Config) Deprecated.voidstart(HttpProcessor httpProcessor, Http1Config http1Config) 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
-
Http1TestClient
public Http1TestClient(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) throws IOException - Throws:
IOException
-
Http1TestClient
- Throws:
IOException
-
-
Method Details
-
configure
- Since:
- 5.3
-
configure
- Since:
- 5.4
-
configure
- Since:
- 5.4
-
start
@Deprecated public void start(HttpProcessor httpProcessor, Http1Config http1Config) throws IOException Deprecated.- Throws:
IOException
-
start
Deprecated.- Throws:
IOException
-
start
- Specified by:
startin classHttpTestClient- Throws:
IOException
-
execute
- Throws:
IOException
-
getStatus
-
awaitShutdown
- Throws:
InterruptedException
-
initiateShutdown
public void initiateShutdown() -
shutdown
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
configure(Http1Config),start().