Class NingHttpClient
java.lang.Object
com.github.scribejava.core.httpclient.AbstractAsyncOnlyHttpClient
com.github.scribejava.httpclient.ning.NingHttpClient
- All Implemented Interfaces:
HttpClient,Closeable,AutoCloseable
-
Field Summary
Fields inherited from interface com.github.scribejava.core.httpclient.HttpClient
CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionNingHttpClient(NingHttpClientConfig ningConfig) NingHttpClient(com.ning.http.client.AsyncHttpClient client) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<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 Details
-
NingHttpClient
public NingHttpClient() -
NingHttpClient
-
NingHttpClient
public NingHttpClient(com.ning.http.client.AsyncHttpClient client)
-
-
Method Details
-
close
public void close() -
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)
-