Class BasicResponse<T>
java.lang.Object
kong.unirest.core.BaseResponse<T>
kong.unirest.core.BasicResponse<T>
- All Implemented Interfaces:
HttpResponse<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasicResponse(BaseResponse response, T body) BasicResponse(RawResponse httpResponse) BasicResponse(RawResponse httpResponse, String ogBody, RuntimeException ex) BasicResponse(RawResponse httpResponse, T body) -
Method Summary
Methods inherited from class BaseResponse
getCookies, getHeaders, getParsingError, getRequestSummary, getStatus, getStatusText, ifFailure, ifFailure, ifSuccess, isSuccess, map, mapBody, mapError, setParsingException
-
Field Details
-
body
-
-
Constructor Details
-
BasicResponse
BasicResponse(BaseResponse response, T body) -
BasicResponse
-
BasicResponse
-
BasicResponse
-
-
Method Details
-
getBody
- Specified by:
getBodyin interfaceHttpResponse<T>- Specified by:
getBodyin classBaseResponse<T>- Returns:
- the body
-
getRawBody
- Specified by:
getRawBodyin classBaseResponse<T>
-