Class AsyncClientPipeline.ResponseContentStage
java.lang.Object
org.apache.hc.core5.http.nio.support.AsyncClientPipeline.ResponseContentStage
- Enclosing class:
- AsyncClientPipeline
Response content generation stage.
-
Method Summary
Modifier and TypeMethodDescriptionConfigures the pipeline to process the incoming response content as a byte array.asString()Configures the pipeline to process the incoming response content as a String.consume(HandlerResolver<HttpResponse, AsyncResponseConsumer<T>> responseConsumerResolver) ConfiguresAsyncResponseConsumerto be used by the pipeline to process the incoming response message stream.consumeContent(Resolver<ContentType, Supplier<AsyncEntityConsumer<T>>> dataConsumerResolver) ConfiguresAsyncEntityConsumersupplier to be used by the pipeline to process the incoming response content stream.
-
Method Details
-
consume
public <T> AsyncClientPipeline.ResultStage<T> consume(HandlerResolver<HttpResponse, AsyncResponseConsumer<T>> responseConsumerResolver) ConfiguresAsyncResponseConsumerto be used by the pipeline to process the incoming response message stream.- Type Parameters:
T- response content representation.
-
consumeContent
public <T> AsyncClientPipeline.ResultStage<Message<HttpResponse,T>> consumeContent(Resolver<ContentType, Supplier<AsyncEntityConsumer<T>>> dataConsumerResolver) ConfiguresAsyncEntityConsumersupplier to be used by the pipeline to process the incoming response content stream.- Type Parameters:
T- response content representation.
-
asString
Configures the pipeline to process the incoming response content as a String. -
asByteArray
Configures the pipeline to process the incoming response content as a byte array.
-