public class HttpAsyncClient extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
host |
private org.apache.http.impl.nio.client.CloseableHttpAsyncClient |
httpAsyncClient |
| Constructor and Description |
|---|
HttpAsyncClient(String host) |
| Modifier and Type | Method and Description |
|---|---|
Future<org.apache.http.HttpResponse> |
sendAdx(String json,
ResultListener resultListener) |
Future<org.apache.http.HttpResponse> |
sendJsonByPost(String requestType,
String json,
ResultListener resultListener) |
void |
shutdown() |
private final String host
private org.apache.http.impl.nio.client.CloseableHttpAsyncClient httpAsyncClient
public HttpAsyncClient(String host)
public Future<org.apache.http.HttpResponse> sendAdx(String json, ResultListener resultListener)
public Future<org.apache.http.HttpResponse> sendJsonByPost(String requestType, String json, ResultListener resultListener)
public void shutdown()