org.apache.hc.client5.http.fluent

## Class ContentResponseHandler

- java.lang.Object
- - org.apache.hc.client5.http.impl.classic.AbstractHttpClientResponseHandler<Content>
  - - org.apache.hc.client5.http.fluent.ContentResponseHandler

- All Implemented Interfaces:
    org.apache.hc.core5.http.io.HttpClientResponseHandler<Content>

      public class ContentResponseHandler
      extends AbstractHttpClientResponseHandler<Content>

  `HttpClientResponseHandler` implementation that converts `HttpResponse` messages to `Content` instances.
  Since:
    4.4
  See Also:
    `Content`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ContentResponseHandler()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Content` | `handleEntity(org.apache.hc.core5.http.HttpEntity entity)` Handle the response entity and transform it into the actual response object.

    - ### Methods inherited from class org.apache.hc.client5.http.impl.classic.AbstractHttpClientResponseHandler

      `handleResponse`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ContentResponseHandler

          public ContentResponseHandler()

  - ### Method Detail

    - #### handleEntity

          public Content handleEntity(org.apache.hc.core5.http.HttpEntity entity)
                               throws IOException

      Description copied from class: `AbstractHttpClientResponseHandler`
      Handle the response entity and transform it into the actual response object.
      Specified by:
        `handleEntity` in class `AbstractHttpClientResponseHandler<Content>`
      Throws:
        `IOException`

Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.