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 response
    java.io.InputStream getRawBody()
    Raw body of the http response
    int getStatusCode()
    HTTP Status code of the http response

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HttpResponse

      public HttpResponse​(int _code, Headers _headers, java.io.InputStream _rawBody)
      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

      public Headers getHeaders()
      Headers of the http response
    • getRawBody

      public java.io.InputStream getRawBody()
      Raw body of the http response