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

public Interface AsyncEntityConsumer<T>

extends AsyncDataConsumer
Known Direct Implementers
org.apache.hc.core5.http.nio.entity.AbstractBinAsyncEntityConsumer, org.apache.hc.core5.http.nio.entity.AbstractCharAsyncEntityConsumer, org.apache.hc.core5.http.nio.entity.DigestingEntityConsumer, org.apache.hc.core5.http.nio.entity.DiscardingEntityConsumer, org.apache.hc.core5.http.nio.entity.NoopEntityConsumer, org.apache.hc.core5.http.nio.support.classic.AbstractClassicEntityConsumer
Type Parameters
<T>
entity representation.
Imports
java.io.IOException, org.apache.hc.core5.concurrent.FutureCallback, org.apache.hc.core5.http.EntityDetails, .HttpException

Abstract asynchronous message entity consumer.
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public void
failed(Exception
the cause of the failure.
cause
)

Triggered to signal a failure in data processing.

public T

Returns:

the response processing result.
getContent
()

Returns the result of entity processing when it becomes available or null if the entity is still being received.

public void
streamStart(EntityDetails
the details of the incoming message entity.
entityDetails
,
FutureCallback<T>
the result callback.
resultCallback
)

Signals beginning of an incoming request entity stream.

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

Method Detail

failedback to summary
public void failed(Exception cause)

Triggered to signal a failure in data processing.

Parameters
cause:Exception

the cause of the failure.

getContentback to summary
public T getContent()

Returns the result of entity processing when it becomes available or null if the entity is still being received.

Returns:T

the response processing result.

streamStartback to summary
public void streamStart(EntityDetails entityDetails, FutureCallback<T> resultCallback) throws HttpException, IOException

Signals beginning of an incoming request entity stream.

Parameters
entityDetails:EntityDetails

the details of the incoming message entity.

resultCallback:FutureCallback<T>

the result callback.