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, org.apache.hc.core5.reactor.ConnectionInitiator
-
Constructor Summary
ConstructorsConstructorDescriptionHttp1TestClient(org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig, SSLContext sslContext, org.apache.hc.core5.reactor.ssl.SSLSessionInitializer sslSessionInitializer, org.apache.hc.core5.reactor.ssl.SSLSessionVerifier sslSessionVerifier) -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitShutdown(org.apache.hc.core5.util.TimeValue waitTime) voidclose()voidconfigure(org.apache.hc.core5.http.config.Http1Config http1Config) voidconfigure(org.apache.hc.core5.http.nio.NHttpMessageParserFactory<org.apache.hc.core5.http.HttpResponse> responseParserFactory) voidconfigure(org.apache.hc.core5.http.nio.NHttpMessageWriterFactory<org.apache.hc.core5.http.HttpRequest> requestWriterFactory) protected voidexecute(org.apache.hc.core5.reactor.IOEventHandlerFactory ioEventHandlerFactory) org.apache.hc.core5.reactor.IOReactorStatusvoidvoidshutdown(org.apache.hc.core5.util.TimeValue graceTime) voidstart()voidstart(org.apache.hc.core5.http.config.Http1Config http1Config) Deprecated.voidstart(org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.config.Http1Config http1Config) Deprecated.Methods inherited from class HttpTestClient
configure, connect, connect, connect, startExecutionMethods inherited from class AsyncRequester
connect, requestSession
-
Constructor Details
-
Http1TestClient
public Http1TestClient(org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig, SSLContext sslContext, org.apache.hc.core5.reactor.ssl.SSLSessionInitializer sslSessionInitializer, org.apache.hc.core5.reactor.ssl.SSLSessionVerifier sslSessionVerifier) throws IOException - Throws:
IOException
-
Http1TestClient
- Throws:
IOException
-
-
Method Details
-
configure
public void configure(org.apache.hc.core5.http.config.Http1Config http1Config) - Since:
- 5.3
-
configure
public void configure(org.apache.hc.core5.http.nio.NHttpMessageParserFactory<org.apache.hc.core5.http.HttpResponse> responseParserFactory) - Since:
- 5.4
-
configure
public void configure(org.apache.hc.core5.http.nio.NHttpMessageWriterFactory<org.apache.hc.core5.http.HttpRequest> requestWriterFactory) - Since:
- 5.4
-
start
@Deprecated public void start(org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.config.Http1Config http1Config) throws IOException Deprecated.- Throws:
IOException
-
start
@Deprecated public void start(org.apache.hc.core5.http.config.Http1Config http1Config) throws IOException Deprecated.- Throws:
IOException
-
start
- Specified by:
startin classHttpTestClient- Throws:
IOException
-
execute
protected void execute(org.apache.hc.core5.reactor.IOEventHandlerFactory ioEventHandlerFactory) throws IOException - Throws:
IOException
-
getStatus
public org.apache.hc.core5.reactor.IOReactorStatus getStatus() -
awaitShutdown
- Throws:
InterruptedException
-
initiateShutdown
public void initiateShutdown() -
shutdown
public void shutdown(org.apache.hc.core5.util.TimeValue graceTime) -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
configure(Http1Config),start().