Class ScribeHttpClient

java.lang.Object
io.trino.server.security.oauth2.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

    Modifier and Type
    Method
    Description
    void
     
    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)
     

    Methods inherited from class java.lang.Object

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

    • ScribeHttpClient

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

    • 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
    • execute

      public com.github.scribejava.core.model.Response execute(String userAgent, Map<String,String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, byte[] bodyContents) throws InterruptedException, ExecutionException, IOException
      Specified by:
      execute in interface com.github.scribejava.core.httpclient.HttpClient
      Throws:
      InterruptedException
      ExecutionException
      IOException
    • execute

      public 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) throws InterruptedException, ExecutionException, IOException
      Specified by:
      execute in interface com.github.scribejava.core.httpclient.HttpClient
      Throws:
      InterruptedException
      ExecutionException
      IOException
    • execute

      public com.github.scribejava.core.model.Response execute(String userAgent, Map<String,String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, String bodyContents) throws InterruptedException, ExecutionException, IOException
      Specified by:
      execute in interface com.github.scribejava.core.httpclient.HttpClient
      Throws:
      InterruptedException
      ExecutionException
      IOException
    • execute

      public com.github.scribejava.core.model.Response execute(String userAgent, Map<String,String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, File bodyContents) throws InterruptedException, ExecutionException, IOException
      Specified by:
      execute in interface com.github.scribejava.core.httpclient.HttpClient
      Throws:
      InterruptedException
      ExecutionException
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException