Class HttpStringResponse


  • public class HttpStringResponse
    extends HttpResponse
    Class to hold response body as string.
    • Constructor Detail

      • HttpStringResponse

        public HttpStringResponse​(int code,
                                  Headers headers,
                                  InputStream rawBody,
                                  String body)
        Initialization constructor.
        Parameters:
        code - The HTTP status code
        headers - The HTTP headers read from response
        rawBody - The raw data returned in the HTTP response
        body - String response body
    • Method Detail

      • getBody

        public String getBody()
        String body of the http response.
        Returns:
        String response body
      • toString

        public String toString()
        Converts this HttpStringResponse into string format.
        Overrides:
        toString in class HttpResponse
        Returns:
        String representation of this class