Class Response

java.lang.Object
org.apache.hc.client5.http.fluent.Response

public class Response extends Object
HTTP response used by the fluent facade.
Since:
4.2
  • Field Details

    • response

      private final org.apache.hc.core5.http.ClassicHttpResponse response
    • consumed

      private boolean consumed
  • Constructor Details

    • Response

      Response(org.apache.hc.core5.http.ClassicHttpResponse response)
  • Method Details

    • assertNotConsumed

      private void assertNotConsumed()
    • dispose

      private void dispose() throws IOException
      Throws:
      IOException
    • discardContent

      public void discardContent()
      Discards response content and deallocates all resources associated with it.
    • handleResponse

      public <T> T handleResponse(org.apache.hc.core5.http.io.HttpClientResponseHandler<T> handler) throws IOException
      Handles the response using the specified HttpClientResponseHandler
      Throws:
      IOException
    • returnContent

      public Content returnContent() throws IOException
      Throws:
      IOException
    • returnResponse

      public org.apache.hc.core5.http.HttpResponse returnResponse() throws IOException
      Throws:
      IOException
    • saveContent

      public void saveContent(File file) throws IOException
      Throws:
      IOException