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