Package com.moesif.api.http.response
Class HttpStringResponse
- java.lang.Object
-
- com.moesif.api.http.response.HttpResponse
-
- com.moesif.api.http.response.HttpStringResponse
-
public class HttpStringResponse extends HttpResponse
-
-
Constructor Summary
Constructors Constructor Description HttpStringResponse(int _code, Map<String,String> _headers, InputStream _rawBody, String body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBody()String body of the http response-
Methods inherited from class com.moesif.api.http.response.HttpResponse
getHeaders, getRawBody, getStatusCode, shutdown
-
-
-
-
Constructor Detail
-
HttpStringResponse
public HttpStringResponse(int _code, Map<String,String> _headers, InputStream _rawBody, String body)- Parameters:
_code- The HTTP status code_headers- The HTTP headers read from response_rawBody- The raw data returned by the HTTP requestbody- The HTTP body as a string
-
-
Method Detail
-
getBody
public String getBody()
String body of the http response- Returns:
- the HTTP response body as a string
-
-