AsyncRequestProducer that produces one fixed request
and relies on a AsyncEntityProducer to generate request entity stream.
| Modifier and Type | Field and Description |
|---|---|
| private final AsyncEntityProducer | |
| private final HttpRequest |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BasicRequestProducer(final String method, final HttpHost host, final String path, final AsyncEntityProducer dataProducer)
|
| public | |
| public | BasicRequestProducer(final String method, final URI requestUri, final AsyncEntityProducer dataProducer)
|
| public | |
| public | BasicRequestProducer(final Method method, final HttpHost host, final String path, final AsyncEntityProducer dataProducer)
|
| public | |
| public | BasicRequestProducer(final Method method, final URI requestUri, final AsyncEntityProducer dataProducer)
|
| 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 boolean | isRepeatable()
Implements org. ResourceHolder#releaseResources().
|
| public void | produce(final DataStreamChannel
the data channel capable to accepting more data. channel)Implements org. |
| public void | |
| public void | sendRequest(final RequestChannel
the request channel capable to accepting a request message. requestChannel, final HttpContext the actual execution context. httpContext)Implements org. |
| dataProducer | back to summary |
|---|---|
| private final AsyncEntityProducer dataProducer | |
| request | back to summary |
|---|---|
| private final HttpRequest request | |
| BasicRequestProducer | back to summary |
|---|---|
| public BasicRequestProducer(final HttpRequest request, final AsyncEntityProducer dataProducer) | |
| BasicRequestProducer | back to summary |
|---|---|
| public BasicRequestProducer(final String method, final HttpHost host, final String path, final AsyncEntityProducer dataProducer) | |
| BasicRequestProducer | back to summary |
|---|---|
| public BasicRequestProducer(final String method, final HttpHost host, final String path) | |
| BasicRequestProducer | back to summary |
|---|---|
| public BasicRequestProducer(final String method, final URI requestUri, final AsyncEntityProducer dataProducer) | |
| BasicRequestProducer | back to summary |
|---|---|
| public BasicRequestProducer(final String method, final URI requestUri) | |
| BasicRequestProducer | back to summary |
|---|---|
| public BasicRequestProducer(final Method method, final HttpHost host, final String path, final AsyncEntityProducer dataProducer) | |
| BasicRequestProducer | back to summary |
|---|---|
| public BasicRequestProducer(final Method method, final HttpHost host, final String path) | |
| BasicRequestProducer | back to summary |
|---|---|
| public BasicRequestProducer(final Method method, final URI requestUri, final AsyncEntityProducer dataProducer) | |
| BasicRequestProducer | back to summary |
|---|---|
| public BasicRequestProducer(final Method method, final URI requestUri) | |
| 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. | |
| isRepeatable | back to summary |
|---|---|
| public boolean isRepeatable() Implements org. Doc from org. Determines whether the producer can consistently produce the same content
after invocation of
| |
| 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.
| |
| releaseResources | back to summary |
|---|---|
| public void releaseResources() Implements org.
| |
| sendRequest | back to summary |
|---|---|
| public void sendRequest(final RequestChannel requestChannel, final HttpContext httpContext) throws HttpException, IOException Implements org. Doc from org. Triggered to signal the ability of the underlying request channel to accept a request messages. The data producer can choose to send a request message immediately inside the call or asynchronously at some later point.
| |