Package kong.unirest.core
Class ObjectResponse<T>
java.lang.Object
kong.unirest.core.BaseResponse<T>
kong.unirest.core.ObjectResponse<T>
- All Implemented Interfaces:
HttpResponse<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObjectResponse
(ObjectMapper om, RawResponse response, Class<? extends T> to) ObjectResponse
(ObjectMapper om, RawResponse response, GenericType<? extends T> to) -
Method Summary
Methods inherited from class kong.unirest.core.BaseResponse
getCookies, getHeaders, getParsingError, getRequestSummary, getStatus, getStatusText, ifFailure, ifFailure, ifSuccess, isSuccess, map, mapBody, mapError, setParsingException
-
Field Details
-
body
-
om
-
rawBody
-
-
Constructor Details
-
ObjectResponse
ObjectResponse(ObjectMapper om, RawResponse response, Class<? extends T> to) -
ObjectResponse
ObjectResponse(ObjectMapper om, RawResponse response, GenericType<? extends T> to)
-
-
Method Details
-
readBody
-
getBody
-
getBody
- Specified by:
getBody
in interfaceHttpResponse<T>
- Specified by:
getBody
in classBaseResponse<T>
- Returns:
- the body
-
getRawBody
- Specified by:
getRawBody
in classBaseResponse<T>
-