Class 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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final int
    The maximum length of the exception message, to avoid excessive memory usage.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    handleEntity(org.apache.hc.core5.http.HttpEntity entity)
    Handle the response entity and transform it into the actual response object.
    handleResponse(org.apache.hc.core5.http.ClassicHttpResponse response)
    Handles a successful response (2xx status code) and returns the response entity as a Content object.

    Methods inherited from class java.lang.Object

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