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.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()connect(HttpHost host, Timeout timeout, FutureCallback<ClientSessionEndpoint> callback) protected voidexecute(IOEventHandlerFactory ioEventHandlerFactory) voidvoidvoidstart()voidstart(Http1Config http1Config) voidstart(HttpProcessor httpProcessor, Http1Config http1Config) Methods 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
-
start
- Throws:
IOException
-
start
- Throws:
IOException
-
start
- Throws:
IOException
-
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
-