public class HttpResponse extends Object
| Constructor and Description |
|---|
HttpResponse(int _code,
Map<String,String> _headers,
InputStream _rawBody) |
HttpResponse(int _code,
Map<String,String> _headers,
InputStream _rawBody,
org.apache.http.client.methods.HttpRequestBase _baseReq) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getHeaders()
Headers of the http response
|
InputStream |
getRawBody()
Raw body of the http response
|
int |
getStatusCode()
HTTP Status code of the http response
|
void |
shutdown()
Shutdowns any pending http resources e.g., input streams and realses connection
|
public HttpResponse(int _code,
Map<String,String> _headers,
InputStream _rawBody)
_code - The HTTP status code_headers - The HTTP headers read from response_rawBody - The raw data returned by the HTTP requestpublic HttpResponse(int _code,
Map<String,String> _headers,
InputStream _rawBody,
org.apache.http.client.methods.HttpRequestBase _baseReq)
_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 librarypublic int getStatusCode()
public InputStream getRawBody()
public void shutdown()
Copyright © 2017. All rights reserved.