AsyncPushProducer that produces one fixed response
and relies on a AsyncEntityProducer to generate response entity stream.
| Modifier and Type | Field and Description |
|---|---|
| private final AsyncEntityProducer | |
| private final HttpResponse |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Implements org. |
| public void | failed(final Exception
the cause of the failure. cause)Implements org. |
| public void | produce(final DataStreamChannel
the data channel capable to accepting more data. channel)Implements org. |
| public void | produceResponse(final ResponseChannel
the response channel capable to accepting response messages. channel, final HttpContext the actual execution context. httpContext)Implements org. |
| public void |
| dataProducer | back to summary |
|---|---|
| private final AsyncEntityProducer dataProducer | |
| response | back to summary |
|---|---|
| private final HttpResponse response | |
| BasicPushProducer | back to summary |
|---|---|
| public BasicPushProducer(final HttpResponse response, final AsyncEntityProducer dataProducer) | |
| BasicPushProducer | back to summary |
|---|---|
| public BasicPushProducer(final int code, final AsyncEntityProducer dataProducer) | |
| BasicPushProducer | back to summary |
|---|---|
| public BasicPushProducer(final AsyncEntityProducer dataProducer) | |
| available | back to summary |
|---|---|
| public int available() Implements org. Doc from org. Returns the number of bytes immediately available for output. This method can be used as a hint to control output events of the underlying I/O session.
| |
| failed | back to summary |
|---|---|
| public void failed(final Exception cause) Implements org. Doc from org. Triggered to signal a failure in data generation. | |
| produce | back to summary |
|---|---|
| public void produce(final DataStreamChannel channel) throws IOException Implements org. Doc from org. Triggered to signal the ability of the underlying data channel to accept more data. The data producer can choose to write data immediately inside the call or asynchronously at some later point.
| |
| produceResponse | back to summary |
|---|---|
| public void produceResponse(final ResponseChannel channel, final HttpContext httpContext) throws HttpException, IOException Implements org. Doc from org. Triggered to signal the ability of the underlying response channel to accept response messages. The data producer can choose to send a final response message immediately inside the call or asynchronously at some later point. The final response can be preceded by a number of intermediate messages.
| |
| releaseResources | back to summary |
|---|---|
| public void releaseResources() Implements org.
| |