Class RestHttpHelper.HttpResponse

java.lang.Object
org.duracloud.common.web.RestHttpHelper.HttpResponse
Enclosing class:
RestHttpHelper

public static class RestHttpHelper.HttpResponse extends Object
  • Field Details

    • response

      protected final org.apache.http.HttpResponse response
  • Constructor Details

    • HttpResponse

      public HttpResponse(org.apache.http.HttpResponse response)
  • Method Details

    • getStatusCode

      public int getStatusCode()
    • getResponseStream

      public InputStream getResponseStream() throws IOException
      Throws:
      IOException
    • getResponseBody

      public String getResponseBody() throws IOException
      Throws:
      IOException
    • getResponseHeaders

      public org.apache.http.Header[] getResponseHeaders()
    • getResponseHeader

      public org.apache.http.Header getResponseHeader(String headerName)
    • buildMock

      public static RestHttpHelper.HttpResponse buildMock(int statusCode, org.apache.http.Header[] responseHeaders, InputStream responseStream)
      Provided for testing of Http responses