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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      post in interface AsyncHttpClient<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:
      post in interface AsyncHttpClient<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:
      get in interface AsyncHttpClient<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:
      get in interface AsyncHttpClient<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:
      delete in interface AsyncHttpClient<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:
      delete in interface AsyncHttpClient<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:
      put in interface AsyncHttpClient<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:
      put in interface AsyncHttpClient<org.apache.http.impl.nio.client.CloseableHttpAsyncClient>