public final class AccessTokenHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ACCESS_TOKEN_PARAM_NAME
Name of URL parameter for access token.
|
Modifier | Constructor and Description |
---|---|
private |
AccessTokenHelper()
Creates a new instance of AccessTokenHelper.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildUrl(java.lang.CharSequence url,
Builds new URL from passed URL and access token.
|
static java.lang.String |
buildUrl(java.lang.CharSequence url,
Builds new URL from passed URL and access token.
|
private static java.lang.String |
getTokenValue(AccessToken token)
Returns string representation of access token suitable to be used as URL parameter value.
|
private static void |
checkBuildUrlParams(java.lang.CharSequence url,
Checks parameter for methods buildUrl(...).
|
url
- URL. This parameter cannot be null
.token
- Access token. This token will be added to parameters into the URL. This
parameter cannot be null
.AccessTokenRTException
- This exception is thrown if either the passed URL already
contains parameter for access token or some mandatory parameter is null
.url
- URL. This parameter cannot be null
.token
- Access token. This token will be added to parameters into the URL. This
parameter cannot be null
.AccessTokenRTException
- This exception is thrown if either the passed URL already
contains parameter for access token or some mandatory parameter is null
.url
- URL. This parameter cannot be null
.token
- Access token. This token will be added to parameters into the URL. This
parameter cannot be null
.AccessTokenRTException
- If either URL or token parameter is null
.token
- Access token.