public static class Unpacker.CustomizableUnpacker extends java.lang.Object implements Unpacker
Unpacker.CustomizableUnpacker, Unpacker.KeyValueCallback, Unpacker.OAuth2Checker, Unpacker.StandardUnpacker, Unpacker.StandardUnpackerFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HTTPS |
static java.lang.String |
WWW_FORM_URLENCODED |
| Constructor and Description |
|---|
CustomizableUnpacker(OAuthParams.OAuthParamsHelper helper,
Normalizer normalizer,
KeyValueParser queryParser,
KeyValueParser headerParser,
Unpacker.KeyValueCallback queryParamTransformer,
Unpacker.KeyValueCallback bodyParamTransformer,
Unpacker.KeyValueCallback headerTransformer,
Unpacker.OAuth2Checker shouldAllowOAuth2) |
public static final java.lang.String WWW_FORM_URLENCODED
public static final java.lang.String HTTPS
public CustomizableUnpacker(OAuthParams.OAuthParamsHelper helper, Normalizer normalizer, KeyValueParser queryParser, KeyValueParser headerParser, Unpacker.KeyValueCallback queryParamTransformer, Unpacker.KeyValueCallback bodyParamTransformer, Unpacker.KeyValueCallback headerTransformer, Unpacker.OAuth2Checker shouldAllowOAuth2)
public KeyValueHandler queryParamKeyValueHandler(KeyValueHandler kvHandler)
public KeyValueHandler bodyParamKeyValueHandler(KeyValueHandler kvHandler)
public KeyValueHandler headerParamKeyValueHandler(KeyValueHandler kvHandler)
public void parseHeader(java.lang.String header,
KeyValueHandler nonTransformingHandler)
public OAuthParams.OAuthParamsBuilder parseRequest(Request request, java.util.List<KeyValueHandler> kvHandlers)
public UnpackedRequest unpack(Request request, java.util.List<KeyValueHandler> kvHandlers) throws UnpackerException
unpack in interface UnpackerUnpackerExceptionpublic UnpackedRequest unpack(Request request) throws UnpackerException
unpack in interface UnpackerUnpackerExceptionpublic UnpackedRequest unpack(Request request, KeyValueHandler kvHandler) throws UnpackerException
unpack in interface UnpackerUnpackerExceptionpublic UnpackedRequest.OAuth1Request getOAuth1Request(Request.ParsedRequest parsedRequest, OAuthParams.OAuth1Params oAuth1Params) throws MalformedRequest, java.io.UnsupportedEncodingException
MalformedRequestjava.io.UnsupportedEncodingExceptionpublic UnpackedRequest.OAuth1TwoLeggedRequest getOAuth1TwoLeggedRequest(Request.ParsedRequest parsedRequest, OAuthParams.OAuth1Params oAuth1Params) throws MalformedRequest, java.io.UnsupportedEncodingException
MalformedRequestjava.io.UnsupportedEncodingExceptionpublic UnpackedRequest.OAuth2Request getOAuth2Request(Request request, Request.ParsedRequest parsedRequest, java.lang.String token) throws java.io.UnsupportedEncodingException, MalformedRequest
java.io.UnsupportedEncodingExceptionMalformedRequestCopyright © 2019. All Rights Reserved.