Class ApacheHttpClient
java.lang.Object
com.github.scribejava.core.httpclient.AbstractAsyncOnlyHttpClient
com.github.scribejava.httpclient.apache.ApacheHttpClient
- All Implemented Interfaces:
HttpClient
,java.io.Closeable
,java.lang.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> java.util.concurrent.Future<T>
executeAsync(java.lang.String userAgent, java.util.Map<java.lang.String,java.lang.String> headers, Verb httpVerb, java.lang.String completeUrl, byte[] bodyContents, OAuthAsyncRequestCallback<T> callback, 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, Verb httpVerb, java.lang.String completeUrl, MultipartPayload bodyContents, OAuthAsyncRequestCallback<T> callback, 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, Verb httpVerb, java.lang.String completeUrl, java.io.File bodyContents, OAuthAsyncRequestCallback<T> callback, 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, Verb httpVerb, java.lang.String completeUrl, java.lang.String bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
Methods inherited from class com.github.scribejava.core.httpclient.AbstractAsyncOnlyHttpClient
execute, execute, execute, execute
-
Constructor Details
-
ApacheHttpClient
public ApacheHttpClient() -
ApacheHttpClient
-
ApacheHttpClient
public ApacheHttpClient(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder) -
ApacheHttpClient
public ApacheHttpClient(org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)
-
-
Method Details
-
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, Verb httpVerb, java.lang.String completeUrl, byte[] bodyContents, OAuthAsyncRequestCallback<T> callback, 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, Verb httpVerb, java.lang.String completeUrl, MultipartPayload bodyContents, OAuthAsyncRequestCallback<T> callback, 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, Verb httpVerb, java.lang.String completeUrl, java.lang.String bodyContents, OAuthAsyncRequestCallback<T> callback, 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, Verb httpVerb, java.lang.String completeUrl, java.io.File bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
-