T - concrete type of OAuth1Token. access or requestpublic abstract class AbstractOAuth1TokenExtractor<T extends OAuth1Token> extends Object implements TokenExtractor<T>
TokenExtractor for OAuth 1.0a
The process for extracting access and request tokens is similar so this class can do both things.| Constructor and Description |
|---|
AbstractOAuth1TokenExtractor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createToken(String token,
String secret,
String response) |
T |
extract(Response response)
Extracts the concrete type of token from the contents of an Http Response
|
public T extract(Response response) throws IOException
extract in interface TokenExtractor<T extends OAuth1Token>response - the whole responseIOException - in case of troubles while getting body from the responseCopyright © 2017. All rights reserved.