SimpleHttpResponse instance based on events
of an incoming data stream.Important Note
SimpleHttpResponses are intended for simple scenarios where entities inclosed
in responses are known to be small. It is generally recommended to use streaming
org.s, for instance, such as based on
AbstractCharResponseConsumer or AbstractBinResponseConsumer.
SimpleBody, SimpleHttpResponse, AbstractCharResponseConsumer, AbstractBinResponseConsumer
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected SimpleHttpResponse | buildResult(final HttpResponse
the response message. response, final byte[] the response entity. entity, final ContentType the response content type. contentType)Implements abstract org. |
| public static SimpleResponseConsumer | |
| public void | informationResponse(final HttpResponse
the intermediate (1xx) HTTP response. response, final HttpContext the actual execution context. context)Implements org. |
| SimpleResponseConsumer | back to summary |
|---|---|
| pack-priv SimpleResponseConsumer(final AsyncEntityConsumer<byte[]> entityConsumer) | |
| buildResult | back to summary |
|---|---|
| protected SimpleHttpResponse buildResult(final HttpResponse response, final byte[] entity, final ContentType contentType) Implements abstract org. Doc from org. Triggered to generate object that represents a result of response message processing.
| |
| create | back to summary |
|---|---|
| public static SimpleResponseConsumer create() | |
| informationResponse | back to summary |
|---|---|
| public void informationResponse(final HttpResponse response, final HttpContext context) throws HttpException, IOException Implements org. Doc from org. Triggered to signal receipt of an intermediate (1xx) HTTP response.
| |