public final class SimpleResponseConsumer
extends <any>
SimpleHttpResponse instance based on events
of an incoming data stream.
IMPORTANT: SimpleHttpResponses are intended for simple scenarios where entities inclosed
in responses are known to be small. It is generally recommended to use streaming
org.apache.hc.core5.http.nio.AsyncResponseConsumers, for instance, such as based on
AbstractCharResponseConsumer or AbstractBinResponseConsumer.
SimpleBody,
SimpleHttpResponse,
AbstractCharResponseConsumer,
AbstractBinResponseConsumer| Modifier and Type | Method and Description |
|---|---|
protected SimpleHttpResponse |
buildResult(HttpResponse response,
byte[] entity,
ContentType contentType) |
static SimpleResponseConsumer |
create() |
void |
informationResponse(HttpResponse response,
HttpContext context) |
public static SimpleResponseConsumer create()
public void informationResponse(HttpResponse response,
HttpContext context)
throws HttpException,
java.io.IOException
HttpExceptionjava.io.IOExceptionprotected SimpleHttpResponse buildResult(HttpResponse response, byte[] entity, ContentType contentType)