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 APIResponse
public com.google.gson.JsonObject getRawResponseAsJsonObject()
getRawResponseAsJsonObject
in interface APIResponse
public APINode head()
head
in interface APIResponse
public String getHeader()
getHeader
in interface APIResponse
public static APINodeList<APINode> parseResponse(String json, APIContext context, APIRequest<APINode> request, String header) throws APIException.MalformedResponseException
public APIException getException()
getException
in interface APIResponse
Copyright © 2020. All rights reserved.