public abstract class TokenResponse extends Object implements Response
Related specifications:
| Constructor and Description |
|---|
TokenResponse() |
| Modifier and Type | Method and Description |
|---|---|
static TokenResponse |
parse(HTTPResponse httpResponse)
Parses a token response from the specified HTTP response.
|
static TokenResponse |
parse(net.minidev.json.JSONObject jsonObject)
Parses a token response from the specified JSON object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoHTTPResponsepublic TokenResponse()
public static TokenResponse parse(net.minidev.json.JSONObject jsonObject) throws ParseException
jsonObject - The JSON object to parse. Must not beParseException - If the JSON object couldn't be parsed to a
token response.public static TokenResponse parse(HTTPResponse httpResponse) throws ParseException
httpResponse - The HTTP response. Must not be null.ParseException - If the HTTP response couldn't be parsed to a
token response.Copyright © 2013 NimbusDS. All Rights Reserved.