Class ApacheHttpClient

  • All Implemented Interfaces:
    com.github.scribejava.core.httpclient.HttpClient, java.io.Closeable, java.lang.AutoCloseable

    public class ApacheHttpClient
    extends com.github.scribejava.core.httpclient.AbstractAsyncOnlyHttpClient
    • Field Summary

      • Fields inherited from interface com.github.scribejava.core.httpclient.HttpClient

        CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CONTENT_TYPE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      <T> java.util.concurrent.Future<T> executeAsync​(java.lang.String userAgent, java.util.Map<java.lang.String,java.lang.String> headers, com.github.scribejava.core.model.Verb httpVerb, java.lang.String completeUrl, byte[] bodyContents, com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback, com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)  
      <T> java.util.concurrent.Future<T> executeAsync​(java.lang.String userAgent, java.util.Map<java.lang.String,java.lang.String> headers, com.github.scribejava.core.model.Verb httpVerb, java.lang.String completeUrl, com.github.scribejava.core.httpclient.MultipartPayload bodyContents, com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback, com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)  
      <T> java.util.concurrent.Future<T> executeAsync​(java.lang.String userAgent, java.util.Map<java.lang.String,java.lang.String> headers, com.github.scribejava.core.model.Verb httpVerb, java.lang.String completeUrl, java.io.File bodyContents, com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback, com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)  
      <T> java.util.concurrent.Future<T> executeAsync​(java.lang.String userAgent, java.util.Map<java.lang.String,java.lang.String> headers, com.github.scribejava.core.model.Verb httpVerb, java.lang.String completeUrl, java.lang.String bodyContents, com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback, com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)  
      • Methods inherited from class com.github.scribejava.core.httpclient.AbstractAsyncOnlyHttpClient

        execute, execute, execute, execute
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApacheHttpClient

        public ApacheHttpClient()
      • ApacheHttpClient

        public ApacheHttpClient​(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder)
      • ApacheHttpClient

        public ApacheHttpClient​(org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • executeAsync

        public <T> java.util.concurrent.Future<T> executeAsync​(java.lang.String userAgent,
                                                               java.util.Map<java.lang.String,java.lang.String> headers,
                                                               com.github.scribejava.core.model.Verb httpVerb,
                                                               java.lang.String completeUrl,
                                                               byte[] bodyContents,
                                                               com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback,
                                                               com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)
      • executeAsync

        public <T> java.util.concurrent.Future<T> executeAsync​(java.lang.String userAgent,
                                                               java.util.Map<java.lang.String,java.lang.String> headers,
                                                               com.github.scribejava.core.model.Verb httpVerb,
                                                               java.lang.String completeUrl,
                                                               com.github.scribejava.core.httpclient.MultipartPayload bodyContents,
                                                               com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback,
                                                               com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)
      • executeAsync

        public <T> java.util.concurrent.Future<T> executeAsync​(java.lang.String userAgent,
                                                               java.util.Map<java.lang.String,java.lang.String> headers,
                                                               com.github.scribejava.core.model.Verb httpVerb,
                                                               java.lang.String completeUrl,
                                                               java.lang.String bodyContents,
                                                               com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback,
                                                               com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)
      • executeAsync

        public <T> java.util.concurrent.Future<T> executeAsync​(java.lang.String userAgent,
                                                               java.util.Map<java.lang.String,java.lang.String> headers,
                                                               com.github.scribejava.core.model.Verb httpVerb,
                                                               java.lang.String completeUrl,
                                                               java.io.File bodyContents,
                                                               com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback,
                                                               com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)