public class ApacheHttpClient extends AbstractAsyncOnlyHttpClient
CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CONTENT_TYPE
Constructor and Description |
---|
ApacheHttpClient() |
ApacheHttpClient(ApacheHttpClientConfig config) |
ApacheHttpClient(org.apache.http.impl.nio.client.CloseableHttpAsyncClient client) |
ApacheHttpClient(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder) |
Modifier and Type | Method and 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,
File 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,
String bodyContents,
OAuthAsyncRequestCallback<T> callback,
OAuthRequest.ResponseConverter<T> converter) |
execute, execute, execute, execute
public ApacheHttpClient()
public ApacheHttpClient(ApacheHttpClientConfig config)
public ApacheHttpClient(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder)
public ApacheHttpClient(org.apache.http.impl.nio.client.CloseableHttpAsyncClient client)
public void close() throws IOException
IOException
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, byte[] bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, MultipartPayload bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, String bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, File bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter)
Copyright © 2018. All rights reserved.