T
- type of token used to sign the requestpublic abstract class OAuthService<T extends Token> extends Object
Constructor and Description |
---|
OAuthService(OAuthConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
closeAsyncClient() |
Response |
execute(OAuthRequest request)
the same as
OAuthRequest.send() |
Future<Response> |
execute(OAuthRequestAsync request,
OAuthAsyncRequestCallback<Response> callback) |
<T> Future<T> |
execute(OAuthRequestAsync request,
OAuthAsyncRequestCallback<T> callback,
OAuthRequestAsync.ResponseConverter<T> converter) |
OAuthConfig |
getConfig() |
abstract String |
getVersion()
Returns the OAuth version of the service.
|
abstract void |
signRequest(T token,
AbstractRequest request) |
public OAuthService(OAuthConfig config)
public void closeAsyncClient() throws IOException
IOException
public OAuthConfig getConfig()
public abstract String getVersion()
public abstract void signRequest(T token, AbstractRequest request)
public <T> Future<T> execute(OAuthRequestAsync request, OAuthAsyncRequestCallback<T> callback, OAuthRequestAsync.ResponseConverter<T> converter)
public Future<Response> execute(OAuthRequestAsync request, OAuthAsyncRequestCallback<Response> callback)
public Response execute(OAuthRequest request)
OAuthRequest.send()
request
- requestCopyright © 2016. All rights reserved.