Top Description Methods
org.apache.hc.core5.http.nio

public Interface AsyncPushConsumer

extends AsyncDataConsumer
Known Direct Implementers
org.apache.hc.core5.http.nio.support.AbstractAsyncPushHandler
Imports
java.io.IOException, org.apache.hc.core5.http.EntityDetails, .HttpException, .HttpRequest, .HttpResponse, org.apache.hc.core5.http.protocol.HttpContext

Abstract asynchronous push response consumer.
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public void
consumePromise(HttpRequest
the request message head used as a promise.
promise
,
HttpResponse
the pushed response message.
response
,
EntityDetails
the response entity details or null if the response does not enclose an entity.
entityDetails
,
HttpContext
the actual execution context.
context
)

Triggered to signal receipt of a request message head used as a promise and the corresponding pushed response.

public void
failed(Exception
the cause of the failure.
cause
)

Triggered to signal a failure in data processing.

Inherited from org.apache.hc.core5.http.nio.AsyncDataConsumer:
consumestreamEndupdateCapacity

Method Detail

consumePromiseback to summary
public void consumePromise(HttpRequest promise, HttpResponse response, EntityDetails entityDetails, HttpContext context) throws HttpException, IOException

Triggered to signal receipt of a request message head used as a promise and the corresponding pushed response.

Parameters
promise:HttpRequest

the request message head used as a promise.

response:HttpResponse

the pushed response message.

entityDetails:EntityDetails

the response entity details or null if the response does not enclose an entity.

context:HttpContext

the actual execution context.

failedback to summary
public void failed(Exception cause)

Triggered to signal a failure in data processing.

Parameters
cause:Exception

the cause of the failure.