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.Stringbody
-
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.StringgetBody()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
-
-
-
-
Constructor Detail
-
StringResponse
public StringResponse(RawResponse response, java.lang.String encoding)
-
-
Method Detail
-
getBody
public java.lang.String getBody()
- Specified by:
getBodyin interfaceHttpResponse<java.lang.String>- Specified by:
getBodyin classBaseResponse<java.lang.String>- Returns:
- the body
-
getRawBody
protected java.lang.String getRawBody()
- Specified by:
getRawBodyin classBaseResponse<java.lang.String>
-
-