public abstract class OAuthService extends Object implements Closeable
Constructor and Description |
---|
OAuthService(OAuthConfig config) |
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) |
OAuthConfig |
getConfig() |
abstract String |
getVersion()
Returns the OAuth version of the service.
|
public OAuthService(OAuthConfig config)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public OAuthConfig getConfig()
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 © 2017. All rights reserved.