Class HttpStringResponse

java.lang.Object
com.bandwidth.http.response.HttpResponse
com.bandwidth.http.response.HttpStringResponse

public class HttpStringResponse
extends HttpResponse
  • Constructor Summary

    Constructors 
    Constructor Description
    HttpStringResponse​(int _code, Headers _headers, java.io.InputStream _rawBody, java.lang.String body)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getBody()
    String body of the http response

    Methods inherited from class com.bandwidth.http.response.HttpResponse

    getHeaders, getRawBody, getStatusCode

    Methods inherited from class java.lang.Object

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

    • HttpStringResponse

      public HttpStringResponse​(int _code, Headers _headers, java.io.InputStream _rawBody, java.lang.String body)
      Parameters:
      _code - The HTTP status code
      _headers - The HTTP headers read from response
      _rawBody - The raw data returned by the HTTP request
  • Method Details

    • getBody

      public java.lang.String getBody()
      String body of the http response