T
- type of token used to sign the requestpublic abstract class OAuthService<T extends Token> extends Object implements AutoCloseable
Constructor and Description |
---|
OAuthService(OAuthConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeAsyncClient()
Deprecated.
use
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) |
OAuthConfig |
getConfig() |
abstract String |
getVersion()
Returns the OAuth version of the service.
|
abstract void |
signRequest(T token,
OAuthRequest request) |
public OAuthService(OAuthConfig config)
@Deprecated public void closeAsyncClient() throws IOException
close()
IOException
- IOExceptionpublic void close() throws IOException
close
in interface AutoCloseable
IOException
public OAuthConfig getConfig()
public abstract String getVersion()
public abstract void signRequest(T token, OAuthRequest request)
public <R> Future<R> execute(OAuthRequest request, OAuthAsyncRequestCallback<R> callback, OAuthRequest.ResponseConverter<R> converter)
public Future<Response> execute(OAuthRequest request, OAuthAsyncRequestCallback<Response> callback)
public Response execute(OAuthRequest request) throws InterruptedException, ExecutionException, IOException
Copyright © 2017. All rights reserved.