Package kong.unirest.core
Class BasicResponse<T>
- java.lang.Object
-
- kong.unirest.core.BaseResponse<T>
-
- kong.unirest.core.BasicResponse<T>
-
- All Implemented Interfaces:
HttpResponse<T>
public class BasicResponse<T> extends BaseResponse<T>
-
-
Constructor Summary
Constructors Constructor Description BasicResponse(BaseResponse response, T body)BasicResponse(RawResponse httpResponse)BasicResponse(RawResponse httpResponse, java.lang.String ogBody, java.lang.RuntimeException ex)BasicResponse(RawResponse httpResponse, T body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetBody()protected java.lang.StringgetRawBody()-
Methods inherited from class kong.unirest.core.BaseResponse
getCookies, getHeaders, getParsingError, getRequestSummary, getStatus, getStatusText, ifFailure, ifFailure, ifSuccess, isSuccess, map, mapBody, mapError, setParsingException
-
-
-
-
Field Detail
-
body
private final T body
-
-
Constructor Detail
-
BasicResponse
BasicResponse(BaseResponse response, T body)
-
BasicResponse
public BasicResponse(RawResponse httpResponse, T body)
-
BasicResponse
public BasicResponse(RawResponse httpResponse)
-
BasicResponse
public BasicResponse(RawResponse httpResponse, java.lang.String ogBody, java.lang.RuntimeException ex)
-
-
Method Detail
-
getBody
public T getBody()
- Specified by:
getBodyin interfaceHttpResponse<T>- Specified by:
getBodyin classBaseResponse<T>- Returns:
- the body
-
getRawBody
protected java.lang.String getRawBody()
- Specified by:
getRawBodyin classBaseResponse<T>
-
-