Package com.bandwidth.http.response
Class HttpResponse
java.lang.Object
com.bandwidth.http.response.HttpResponse
- Direct Known Subclasses:
HttpStringResponse
public class HttpResponse
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description HttpResponse(int _code, Headers _headers, java.io.InputStream _rawBody)
-
Method Summary
Modifier and Type Method Description Headers
getHeaders()
Headers of the http responsejava.io.InputStream
getRawBody()
Raw body of the http responseint
getStatusCode()
HTTP Status code of the http response
-
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
-
-
Method Details
-
getStatusCode
public int getStatusCode()HTTP Status code of the http response -
getHeaders
Headers of the http response -
getRawBody
public java.io.InputStream getRawBody()Raw body of the http response
-