Class NingHttpClient
- java.lang.Object
-
- com.github.scribejava.core.httpclient.AbstractAsyncOnlyHttpClient
-
- com.github.scribejava.httpclient.ning.NingHttpClient
-
- All Implemented Interfaces:
com.github.scribejava.core.httpclient.HttpClient,java.io.Closeable,java.lang.AutoCloseable
public class NingHttpClient extends com.github.scribejava.core.httpclient.AbstractAsyncOnlyHttpClient
-
-
Constructor Summary
Constructors Constructor Description NingHttpClient()NingHttpClient(NingHttpClientConfig ningConfig)NingHttpClient(com.ning.http.client.AsyncHttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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.multipart.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, com.github.scribejava.core.httpclient.MultipartPayload bodyContents, com.github.scribejava.core.model.OAuthAsyncRequestCallback<T> callback, com.github.scribejava.core.model.OAuthRequest.ResponseConverter<T> converter)Deprecated.<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
-
NingHttpClient
public NingHttpClient()
-
NingHttpClient
public NingHttpClient(NingHttpClientConfig ningConfig)
-
NingHttpClient
public NingHttpClient(com.ning.http.client.AsyncHttpClient client)
-
-
Method Detail
-
close
public void close()
-
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
@Deprecated 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)Deprecated.
-
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.multipart.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)
-
-