Package com.bandwidth.http.response
Class HttpStringResponse
java.lang.Object
com.bandwidth.http.response.HttpResponse
com.bandwidth.http.response.HttpStringResponse
public class HttpStringResponse extends HttpResponse
Class to hold response body as string.
-
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 responseMethods inherited from class com.bandwidth.http.response.HttpResponse
getHeaders, getRawBody, getStatusCode
-
Constructor Details
-
HttpStringResponse
public HttpStringResponse(int code, Headers headers, java.io.InputStream rawBody, java.lang.String body)- Parameters:
code
- The HTTP status codeheaders
- The HTTP headers read from responserawBody
- The raw data returned by the HTTP request
-
-
Method Details
-
getBody
public java.lang.String getBody()String body of the http response
-