Class ApacheHttpClient
- java.lang.Object
-
- com.github.scribejava.core.httpclient.AbstractAsyncOnlyHttpClient
-
- com.github.scribejava.httpclient.apache.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
-
-
Constructor Summary
Constructors Constructor Description ApacheHttpClient()ApacheHttpClient(ApacheHttpClientConfig config)ApacheHttpClient(org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)ApacheHttpClient(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<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)
-
-
-
Constructor Detail
-
ApacheHttpClient
public ApacheHttpClient()
-
ApacheHttpClient
public ApacheHttpClient(ApacheHttpClientConfig config)
-
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)
-
-