Package com.moesif.api.http.response
Class HttpResponse
java.lang.Object
com.moesif.api.http.response.HttpResponse
- Direct Known Subclasses:
HttpStringResponse
-
Constructor Summary
ConstructorsConstructorDescriptionHttpResponse(int _code, Map<String, String> _headers, InputStream _rawBody) HttpResponse(int _code, Map<String, String> _headers, InputStream _rawBody, org.apache.http.client.methods.HttpRequestBase _baseReq) -
Method Summary
Modifier and TypeMethodDescriptionHeaders of the http responseRaw body of the http responseintHTTP Status code of the http responsevoidshutdown()Shutdowns any pending http resources e.g., input streams and realses connection
-
Constructor Details
-
HttpResponse
- Parameters:
_code- The HTTP status code_headers- The HTTP headers read from response_rawBody- The raw data returned by the HTTP request
-
HttpResponse
public HttpResponse(int _code, Map<String, String> _headers, InputStream _rawBody, org.apache.http.client.methods.HttpRequestBase _baseReq) - Parameters:
_code- The HTTP status code_headers- The HTTP headers read from response_rawBody- The raw data returned by the HTTP request_baseReq- The underlying http base request from the apache http library
-
-
Method Details
-
getStatusCode
public int getStatusCode()HTTP Status code of the http response- Returns:
- the HTTP status code
-
getHeaders
Headers of the http response- Returns:
- the HTTP response headers
-
getRawBody
Raw body of the http response- Returns:
- the raw HTTP body
-
shutdown
public void shutdown()Shutdowns any pending http resources e.g., input streams and realses connection
-