Class AsyncServerPipeline.RequestContentStage
- java.lang.Object
-
- org.apache.hc.core5.http.nio.support.AsyncServerPipeline.RequestContentStage
-
- Enclosing class:
- AsyncServerPipeline
public static class AsyncServerPipeline.RequestContentStage extends java.lang.ObjectRequest content processing stage.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncServerPipeline.ResponseStage<Message<HttpRequest,byte[]>>asByteArray()Configures the pipeline to process the incoming request content as a byte array.AsyncServerPipeline.ResponseStage<Message<HttpRequest,java.lang.String>>asString()Configures the pipeline to process the incoming request content as a String.<T> AsyncServerPipeline.ResponseStage<T>consume(HandlerResolver<HttpRequest,AsyncRequestConsumer<T>> requestConsumerResolver)ResolvesAsyncRequestConsumerto be used by the pipeline to process the incoming request message stream.<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.AsyncServerPipeline.ResponseStage<Message<HttpRequest,java.lang.Void>>ignoreContent()Configures the pipeline to ignore and discard the incoming request content.
-
-
-
Method Detail
-
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
public AsyncServerPipeline.ResponseStage<Message<HttpRequest,java.lang.String>> asString()
Configures the pipeline to process the incoming request content as a String.
-
asByteArray
public AsyncServerPipeline.ResponseStage<Message<HttpRequest,byte[]>> asByteArray()
Configures the pipeline to process the incoming request content as a byte array.
-
ignoreContent
public AsyncServerPipeline.ResponseStage<Message<HttpRequest,java.lang.Void>> ignoreContent()
Configures the pipeline to ignore and discard the incoming request content.
-
-