Class ScribeHttpClient

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

    public class ScribeHttpClient
    extends Object
    implements com.github.scribejava.core.httpclient.HttpClient
    • Field Summary

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

        CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CONTENT_TYPE
    • Constructor Summary

      Constructors 
      Constructor Description
      ScribeHttpClient​(io.airlift.http.client.HttpClient httpClient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      com.github.scribejava.core.model.Response execute​(String userAgent, Map<String,​String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, byte[] bodyContents)  
      com.github.scribejava.core.model.Response execute​(String userAgent, Map<String,​String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, com.github.scribejava.core.httpclient.multipart.MultipartPayload bodyContents)  
      com.github.scribejava.core.model.Response execute​(String userAgent, Map<String,​String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, File bodyContents)  
      com.github.scribejava.core.model.Response execute​(String userAgent, Map<String,​String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, String bodyContents)  
      <T> Future<T> executeAsync​(String userAgent, Map<String,​String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, byte[] bodyContents, com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback, com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)  
      <T> Future<T> executeAsync​(String userAgent, Map<String,​String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, com.github.scribejava.core.httpclient.multipart.MultipartPayload bodyContents, com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback, com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)  
      <T> Future<T> executeAsync​(String userAgent, Map<String,​String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, File bodyContents, com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback, com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)  
      <T> Future<T> executeAsync​(String userAgent, Map<String,​String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, String bodyContents, com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback, com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)  
    • Constructor Detail

      • ScribeHttpClient

        public ScribeHttpClient​(io.airlift.http.client.HttpClient httpClient)
    • Method Detail

      • executeAsync

        public <T> Future<T> executeAsync​(String userAgent,
                                          Map<String,​String> headers,
                                          com.github.scribejava.core.model.Verb httpVerb,
                                          String completeUrl,
                                          byte[] bodyContents,
                                          com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback,
                                          com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)
        Specified by:
        executeAsync in interface com.github.scribejava.core.httpclient.HttpClient
      • executeAsync

        public <T> Future<T> executeAsync​(String userAgent,
                                          Map<String,​String> headers,
                                          com.github.scribejava.core.model.Verb httpVerb,
                                          String completeUrl,
                                          com.github.scribejava.core.httpclient.multipart.MultipartPayload bodyContents,
                                          com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback,
                                          com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)
        Specified by:
        executeAsync in interface com.github.scribejava.core.httpclient.HttpClient
      • executeAsync

        public <T> Future<T> executeAsync​(String userAgent,
                                          Map<String,​String> headers,
                                          com.github.scribejava.core.model.Verb httpVerb,
                                          String completeUrl,
                                          String bodyContents,
                                          com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback,
                                          com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)
        Specified by:
        executeAsync in interface com.github.scribejava.core.httpclient.HttpClient
      • executeAsync

        public <T> Future<T> executeAsync​(String userAgent,
                                          Map<String,​String> headers,
                                          com.github.scribejava.core.model.Verb httpVerb,
                                          String completeUrl,
                                          File bodyContents,
                                          com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback,
                                          com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)
        Specified by:
        executeAsync in interface com.github.scribejava.core.httpclient.HttpClient