Class AsyncClientPipeline.ResponseContentStage
- java.lang.Object
-
- org.apache.hc.core5.http.nio.support.AsyncClientPipeline.ResponseContentStage
-
- Enclosing class:
- AsyncClientPipeline
public static class AsyncClientPipeline.ResponseContentStage extends java.lang.ObjectResponse content generation stage.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncClientPipeline.ResultStage<Message<HttpResponse,byte[]>>asByteArray()Configures the pipeline to process the incoming response content as a byte array.AsyncClientPipeline.ResultStage<Message<HttpResponse,java.lang.String>>asString()Configures the pipeline to process the incoming response content as a String.<T> AsyncClientPipeline.ResultStage<T>consume(HandlerResolver<HttpResponse,AsyncResponseConsumer<T>> responseConsumerResolver)ConfiguresAsyncResponseConsumerto be used by the pipeline to process the incoming response message stream.<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.
-
-
-
Method Detail
-
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
public AsyncClientPipeline.ResultStage<Message<HttpResponse,java.lang.String>> asString()
Configures the pipeline to process the incoming response content as a String.
-
asByteArray
public AsyncClientPipeline.ResultStage<Message<HttpResponse,byte[]>> asByteArray()
Configures the pipeline to process the incoming response content as a byte array.
-
-