Class JsonNodeEntityFallbackConsumer

java.lang.Object
org.apache.hc.core5.jackson2.http.JsonNodeEntityFallbackConsumer
All Implemented Interfaces:
AsyncDataConsumer, AsyncEntityConsumer<com.fasterxml.jackson.databind.JsonNode>, ResourceHolder

public class JsonNodeEntityFallbackConsumer extends Object implements AsyncEntityConsumer<com.fasterxml.jackson.databind.JsonNode>
AsyncEntityConsumer implementation that de-serializes incoming HTTP message entity into an JsonNode instance if the message content type is ContentType.APPLICATION_JSON or as a single text JsonNode if the message content type is not supported. This entity consumer is primarily intended for handling of response messages that represent a client or a server error (such as a response with 4xx or 5xx status).
Since:
5.5