public class APINode extends Object implements APIResponse
| Modifier and Type | Field and Description |
|---|---|
protected APIContext |
context |
protected String |
header |
protected String |
rawValue |
| Constructor and Description |
|---|
APINode() |
| Modifier and Type | Method and Description |
|---|---|
APIContext |
getContext() |
APIException |
getException() |
String |
getHeader() |
String |
getId() |
String |
getRawResponse() |
com.google.gson.JsonObject |
getRawResponseAsJsonObject() |
String |
getRawValue() |
APINode |
head() |
static APINode |
loadJSON(String json,
APIContext context,
String header) |
static APINodeList<APINode> |
parseResponse(String json,
APIContext context,
APIRequest<APINode> request,
String header) |
void |
setContext(APIContext context) |
String |
toString() |
protected APIContext context
protected String rawValue
protected String header
public static APINode loadJSON(String json, APIContext context, String header)
public APIContext getContext()
public void setContext(APIContext context)
public String getId()
public String getRawValue()
public String getRawResponse()
getRawResponse in interface APIResponsepublic com.google.gson.JsonObject getRawResponseAsJsonObject()
getRawResponseAsJsonObject in interface APIResponsepublic APINode head()
head in interface APIResponsepublic String getHeader()
getHeader in interface APIResponsepublic static APINodeList<APINode> parseResponse(String json, APIContext context, APIRequest<APINode> request, String header) throws APIException.MalformedResponseException
public APIException getException()
getException in interface APIResponseCopyright © 2020. All rights reserved.