Package io.trino.server.security.oauth2
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
-
-
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 voidclose()com.github.scribejava.core.model.Responseexecute(String userAgent, Map<String,String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, byte[] bodyContents)com.github.scribejava.core.model.Responseexecute(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.Responseexecute(String userAgent, Map<String,String> headers, com.github.scribejava.core.model.Verb httpVerb, String completeUrl, File bodyContents)com.github.scribejava.core.model.Responseexecute(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)
-
-
-
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:
executeAsyncin interfacecom.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:
executeAsyncin interfacecom.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:
executeAsyncin interfacecom.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:
executeAsyncin interfacecom.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:
executein interfacecom.github.scribejava.core.httpclient.HttpClient- Throws:
InterruptedExceptionExecutionExceptionIOException
-
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:
executein interfacecom.github.scribejava.core.httpclient.HttpClient- Throws:
InterruptedExceptionExecutionExceptionIOException
-
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:
executein interfacecom.github.scribejava.core.httpclient.HttpClient- Throws:
InterruptedExceptionExecutionExceptionIOException
-
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:
executein interfacecom.github.scribejava.core.httpclient.HttpClient- Throws:
InterruptedExceptionExecutionExceptionIOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-