public final class SimpleResponseConsumer extends AbstractAsyncResponseConsumer<SimpleHttpResponse,byte[]>
SimpleHttpResponse
instance based on events
of an incoming data stream.SimpleBody
Modifier and Type | Method and Description |
---|---|
protected SimpleHttpResponse |
buildResult(HttpResponse response,
byte[] entity,
ContentType contentType)
Triggered to generate object that represents a result of response message processing.
|
static SimpleResponseConsumer |
create() |
void |
informationResponse(HttpResponse response,
HttpContext context)
Triggered to signal receipt of an intermediate (1xx) HTTP response.
|
consume, consumeResponse, failed, releaseResources, streamEnd, updateCapacity
protected SimpleHttpResponse buildResult(HttpResponse response, byte[] entity, ContentType contentType)
AbstractAsyncResponseConsumer
buildResult
in class AbstractAsyncResponseConsumer<SimpleHttpResponse,byte[]>
response
- the response message.entity
- the response entity.contentType
- the response content type.public static SimpleResponseConsumer create()
public void informationResponse(HttpResponse response, HttpContext context) throws HttpException, IOException
AsyncResponseConsumer
response
- the intermediate (1xx) HTTP response.context
- the actual execution context.HttpException
IOException