Class ApacheHttpClient
- java.lang.Object
-
- com.github.scribejava.core.httpclient.AbstractAsyncOnlyHttpClient
-
- com.github.scribejava.httpclient.apache.ApacheHttpClient
-
- All Implemented Interfaces:
HttpClient
,Closeable
,AutoCloseable
public class ApacheHttpClient extends AbstractAsyncOnlyHttpClient
-
-
Field Summary
-
Fields inherited from interface com.github.scribejava.core.httpclient.HttpClient
CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CONTENT_TYPE
-
-
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
Modifier and Type Method Description void
close()
<T> Future<T>
executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, byte[] bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
<T> Future<T>
executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, MultipartPayload bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
<T> Future<T>
executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, File bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
<T> Future<T>
executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, String bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
-
Methods inherited from class com.github.scribejava.core.httpclient.AbstractAsyncOnlyHttpClient
execute, execute, execute, execute
-
-
-
-
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 IOException
- Throws:
IOException
-
executeAsync
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, byte[] bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
-
executeAsync
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, MultipartPayload bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
-
executeAsync
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, String bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
-
executeAsync
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, File bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
-
-