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
-
Field Summary
Fields inherited from interface com.github.scribejava.core.httpclient.HttpClient
CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CONTENT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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)
-
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:
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
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-