Interface TokenExtractor<T extends Token>
-
- Type Parameters:
T
- concrete type of Token
- All Known Implementing Classes:
AbstractOAuth1JSONTokenExtractor
,AbstractOAuth1TokenExtractor
,OAuth1AccessTokenExtractor
,OAuth1AccessTokenJSONExtractor
,OAuth1RequestTokenExtractor
,OAuth1RequestTokenJSONExtractor
,OAuth2AccessTokenExtractor
,OAuth2AccessTokenJsonExtractor
public interface TokenExtractor<T extends Token>
Simple command object that extracts a concreteToken
from a String
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
extract(Response response)
Extracts the concrete type of token from the contents of an Http Response
-
-
-
Method Detail
-
extract
T extract(Response response) throws IOException, OAuthException
Extracts the concrete type of token from the contents of an Http Response- Parameters:
response
- the whole response- Returns:
- OAuth access token
- Throws:
IOException
- in case of troubles while getting body from the responseOAuthException
-
-