Class AbstractOAuth1TokenExtractor<T extends OAuth1Token>

    • Constructor Detail

      • AbstractOAuth1TokenExtractor

        public AbstractOAuth1TokenExtractor()
    • Method Detail

      • extract

        public T extract​(Response response)
                  throws IOException
        Description copied from interface: TokenExtractor
        Extracts the concrete type of token from the contents of an Http Response
        Specified by:
        extract in interface TokenExtractor<T extends OAuth1Token>
        Parameters:
        response - the whole response
        Returns:
        OAuth access token
        Throws:
        IOException - in case of troubles while getting body from the response
      • parse

        protected abstract T parse​(String body)