Package dev.vality.http.client
Class AsyncHttpClientImpl
java.lang.Object
dev.vality.http.client.AsyncHttpClientImpl
- All Implemented Interfaces:
AsyncHttpClient<org.apache.http.impl.nio.client.CloseableHttpAsyncClient>
public class AsyncHttpClientImpl extends Object implements AsyncHttpClient<org.apache.http.impl.nio.client.CloseableHttpAsyncClient>
-
Constructor Summary
Constructors Constructor Description AsyncHttpClientImpl() -
Method Summary
Modifier and Type Method Description Future<org.apache.http.HttpResponse>delete(String methodName, org.apache.http.client.methods.HttpDelete httpDelete, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)Future<org.apache.http.HttpResponse>delete(String methodName, org.apache.http.client.methods.HttpDelete httpDelete, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback, org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)Future<org.apache.http.HttpResponse>get(String methodName, org.apache.http.client.methods.HttpGet httpGet, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)Future<org.apache.http.HttpResponse>get(String methodName, org.apache.http.client.methods.HttpGet httpGet, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback, org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)Future<org.apache.http.HttpResponse>post(String methodName, org.apache.http.client.methods.HttpPost httpPost, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)Future<org.apache.http.HttpResponse>post(String methodName, org.apache.http.client.methods.HttpPost httpPost, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback, org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)Future<org.apache.http.HttpResponse>put(String methodName, org.apache.http.client.methods.HttpPut httpPut, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)Future<org.apache.http.HttpResponse>put(String methodName, org.apache.http.client.methods.HttpPut httpPut, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback, org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)
-
Constructor Details
-
AsyncHttpClientImpl
public AsyncHttpClientImpl()
-
-
Method Details
-
post
public Future<org.apache.http.HttpResponse> post(String methodName, org.apache.http.client.methods.HttpPost httpPost, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback, org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)- Specified by:
postin interfaceAsyncHttpClient<org.apache.http.impl.nio.client.CloseableHttpAsyncClient>
-
post
public Future<org.apache.http.HttpResponse> post(String methodName, org.apache.http.client.methods.HttpPost httpPost, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)- Specified by:
postin interfaceAsyncHttpClient<org.apache.http.impl.nio.client.CloseableHttpAsyncClient>
-
get
public Future<org.apache.http.HttpResponse> get(String methodName, org.apache.http.client.methods.HttpGet httpGet, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback, org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)- Specified by:
getin interfaceAsyncHttpClient<org.apache.http.impl.nio.client.CloseableHttpAsyncClient>
-
get
public Future<org.apache.http.HttpResponse> get(String methodName, org.apache.http.client.methods.HttpGet httpGet, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)- Specified by:
getin interfaceAsyncHttpClient<org.apache.http.impl.nio.client.CloseableHttpAsyncClient>
-
delete
public Future<org.apache.http.HttpResponse> delete(String methodName, org.apache.http.client.methods.HttpDelete httpDelete, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback, org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)- Specified by:
deletein interfaceAsyncHttpClient<org.apache.http.impl.nio.client.CloseableHttpAsyncClient>
-
delete
public Future<org.apache.http.HttpResponse> delete(String methodName, org.apache.http.client.methods.HttpDelete httpDelete, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)- Specified by:
deletein interfaceAsyncHttpClient<org.apache.http.impl.nio.client.CloseableHttpAsyncClient>
-
put
public Future<org.apache.http.HttpResponse> put(String methodName, org.apache.http.client.methods.HttpPut httpPut, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback, org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)- Specified by:
putin interfaceAsyncHttpClient<org.apache.http.impl.nio.client.CloseableHttpAsyncClient>
-
put
public Future<org.apache.http.HttpResponse> put(String methodName, org.apache.http.client.methods.HttpPut httpPut, org.apache.http.concurrent.FutureCallback<org.apache.http.HttpResponse> callback)- Specified by:
putin interfaceAsyncHttpClient<org.apache.http.impl.nio.client.CloseableHttpAsyncClient>
-