Class BaseStringExtractorImpl
- java.lang.Object
-
- com.github.scribejava.core.extractors.BaseStringExtractorImpl
-
- All Implemented Interfaces:
BaseStringExtractor
public class BaseStringExtractorImpl extends java.lang.Object implements BaseStringExtractor
Default implementation ofBaseStringExtractor. Conforms to OAuth 1.0a https://tools.ietf.org/html/rfc5849#section-3.4.1.1
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringAMPERSAND_SEPARATED_STRING
-
Constructor Summary
Constructors Constructor Description BaseStringExtractorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckPreconditions(OAuthRequest request)java.lang.Stringextract(OAuthRequest request)Extracts an url-encoded base string from theOAuthRequest.protected java.lang.StringgetSortedAndEncodedParams(OAuthRequest request)protected java.lang.StringgetUrl(OAuthRequest request)https://tools.ietf.org/html/rfc5849#section-3.4.1.2protected java.lang.StringgetVerb(OAuthRequest request)
-
-
-
Field Detail
-
AMPERSAND_SEPARATED_STRING
protected static final java.lang.String AMPERSAND_SEPARATED_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
extract
public java.lang.String extract(OAuthRequest request)
Extracts an url-encoded base string from theOAuthRequest. See the oauth spec for more info on this.- Specified by:
extractin interfaceBaseStringExtractor- Parameters:
request- the OAuthRequest- Returns:
- the url-encoded base string
-
getVerb
protected java.lang.String getVerb(OAuthRequest request)
-
getUrl
protected java.lang.String getUrl(OAuthRequest request)
https://tools.ietf.org/html/rfc5849#section-3.4.1.2- Parameters:
request- request- Returns:
- url
-
getSortedAndEncodedParams
protected java.lang.String getSortedAndEncodedParams(OAuthRequest request)
-
checkPreconditions
protected void checkPreconditions(OAuthRequest request)
-
-