public abstract class OAuthService extends Object implements Closeable
Constructor and Description |
---|
OAuthService(OAuthConfig config)
|
OAuthService(String apiKey,
String apiSecret,
String callback,
String scope,
OutputStream debugStream,
String state,
String responseType,
String userAgent,
HttpClientConfig httpClientConfig,
HttpClient httpClient) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Response |
execute(OAuthRequest request) |
<R> Future<R> |
execute(OAuthRequest request,
OAuthAsyncRequestCallback<R> callback,
OAuthRequest.ResponseConverter<R> converter) |
Future<Response> |
execute(OAuthRequest request,
OAuthAsyncRequestCallback<Response> callback) |
Future<Response> |
executeAsync(OAuthRequest request) |
String |
getApiKey() |
String |
getApiSecret() |
String |
getCallback() |
OAuthConfig |
getConfig()
Deprecated.
use direct getXXX() instead of getConfig().getXXX()
|
String |
getScope() |
abstract String |
getVersion()
Returns the OAuth version of the service.
|
public OAuthService(String apiKey, String apiSecret, String callback, String scope, OutputStream debugStream, String state, String responseType, String userAgent, HttpClientConfig httpClientConfig, HttpClient httpClient)
@Deprecated public OAuthService(OAuthConfig config)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
@Deprecated public OAuthConfig getConfig()
public String getApiKey()
public String getApiSecret()
public String getCallback()
public String getScope()
public abstract String getVersion()
public Future<Response> executeAsync(OAuthRequest request)
public Future<Response> execute(OAuthRequest request, OAuthAsyncRequestCallback<Response> callback)
public <R> Future<R> execute(OAuthRequest request, OAuthAsyncRequestCallback<R> callback, OAuthRequest.ResponseConverter<R> converter)
public Response execute(OAuthRequest request) throws InterruptedException, ExecutionException, IOException
Copyright © 2018. All rights reserved.