Class AsyncServerPipeline.RequestContentStage
java.lang.Object
org.apache.hc.core5.http.nio.support.AsyncServerPipeline.RequestContentStage
- Enclosing class:
- AsyncServerPipeline
Request content processing stage.
-
Method Summary
Modifier and TypeMethodDescriptionConfigures the pipeline to process the incoming request content as a byte array.asString()Configures the pipeline to process the incoming request content as a String.consume(HandlerResolver<HttpRequest, AsyncRequestConsumer<T>> requestConsumerResolver) ResolvesAsyncRequestConsumerto be used by the pipeline to process the incoming request message stream.consumeContent(Resolver<ContentType, Supplier<AsyncEntityConsumer<T>>> dataConsumerResolver) ResolvesAsyncEntityConsumerto be used by the pipeline to process the incoming request content stream.Configures the pipeline to ignore and discard the incoming request content.
-
Method Details
-
consume
public <T> AsyncServerPipeline.ResponseStage<T> consume(HandlerResolver<HttpRequest, AsyncRequestConsumer<T>> requestConsumerResolver) ResolvesAsyncRequestConsumerto be used by the pipeline to process the incoming request message stream.- Type Parameters:
T- request content representation.
-
consumeContent
public <T> AsyncServerPipeline.ResponseStage<Message<HttpRequest,T>> consumeContent(Resolver<ContentType, Supplier<AsyncEntityConsumer<T>>> dataConsumerResolver) ResolvesAsyncEntityConsumerto be used by the pipeline to process the incoming request content stream. Resolver may returnnullif the media type is not supported.- Type Parameters:
T- request content representation.
-
asString
Configures the pipeline to process the incoming request content as a String. -
asByteArray
Configures the pipeline to process the incoming request content as a byte array. -
ignoreContent
Configures the pipeline to ignore and discard the incoming request content.
-