public class OkHttpHttpClient extends Object implements HttpClient
Constructor and Description |
---|
OkHttpHttpClient(okhttp3.OkHttpClient client) |
OkHttpHttpClient(OkHttpHttpClientConfig config) |
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,
OAuthRequestAsync.ResponseConverter<T> converter) |
<T> Future<T> |
executeAsync(String userAgent,
Map<String,String> headers,
Verb httpVerb,
String completeUrl,
File bodyContents,
OAuthAsyncRequestCallback<T> callback,
OAuthRequestAsync.ResponseConverter<T> converter) |
<T> Future<T> |
executeAsync(String userAgent,
Map<String,String> headers,
Verb httpVerb,
String completeUrl,
String bodyContents,
OAuthAsyncRequestCallback<T> callback,
OAuthRequestAsync.ResponseConverter<T> converter) |
public OkHttpHttpClient(OkHttpHttpClientConfig config)
public OkHttpHttpClient(okhttp3.OkHttpClient client)
public void close() throws IOException
close
in interface HttpClient
IOException
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, byte[] bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequestAsync.ResponseConverter<T> converter)
executeAsync
in interface HttpClient
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, String bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequestAsync.ResponseConverter<T> converter)
executeAsync
in interface HttpClient
public <T> Future<T> executeAsync(String userAgent, Map<String,String> headers, Verb httpVerb, String completeUrl, File bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequestAsync.ResponseConverter<T> converter)
executeAsync
in interface HttpClient
Copyright © 2016. All rights reserved.