Package kong.unirest.core
Class JsonResponse
- All Implemented Interfaces:
HttpResponse<JsonNode>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
private JsonNode
getNode
(RawResponse response) protected String
private JsonNode
toJsonNode
(String json) Methods inherited from class kong.unirest.core.BaseResponse
getCookies, getHeaders, getParsingError, getRequestSummary, getStatus, getStatusText, ifFailure, ifFailure, ifSuccess, isSuccess, map, mapBody, mapError, setParsingException
-
Field Details
-
node
-
-
Constructor Details
-
JsonResponse
-
-
Method Details
-
getNode
-
toJsonNode
-
getBody
- Specified by:
getBody
in interfaceHttpResponse<JsonNode>
- Specified by:
getBody
in classBaseResponse<JsonNode>
- Returns:
- the body
-
getRawBody
- Specified by:
getRawBody
in classBaseResponse<JsonNode>
-