Class AsyncServerPipeline
- java.lang.Object
-
- org.apache.hc.core5.http.nio.support.AsyncServerPipeline
-
public final class AsyncServerPipeline extends java.lang.ObjectServer side execution pipeline assembler that suppliesAsyncServerExchangeHandlerinstances with the defined message exchange pipeline.Please note that
AsyncServerExchangeHandlerare stateful and may not be used concurrently by multiple message exchanges or re-used for subsequent message exchanges.- Since:
- 5.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAsyncServerPipeline.CompletionStage<I,O>Exchange completion stage.static classAsyncServerPipeline.ExceptionStage<I,O>Exception handling stage.static classAsyncServerPipeline.RequestContentStageRequest content processing stage.static classAsyncServerPipeline.RequestHandlingStage<I,O>Request handling stage.static classAsyncServerPipeline.ResponseContentStage<I>Response content generation stage.static classAsyncServerPipeline.ResponseStage<I>Response message stage.
-
Constructor Summary
Constructors Constructor Description AsyncServerPipeline()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AsyncServerPipelineassemble()AsyncServerPipeline.RequestContentStagerequest()Configures the pipeline to process the incoming request message stream.AsyncServerPipeline.RequestContentStagerequest(Method... allowedMethods)Configures the pipeline to process the incoming request message stream provided the request method of the incoming message is allowed.AsyncServerPipeline.RequestContentStagerequest(Validator<HttpRequest> requestValidator)Configures the pipeline to process the incoming request message stream provided the request message passes the validation.
-
-
-
Method Detail
-
assemble
public static AsyncServerPipeline assemble()
-
request
public AsyncServerPipeline.RequestContentStage request(Validator<HttpRequest> requestValidator)
Configures the pipeline to process the incoming request message stream provided the request message passes the validation.
-
request
public AsyncServerPipeline.RequestContentStage request(Method... allowedMethods)
Configures the pipeline to process the incoming request message stream provided the request method of the incoming message is allowed.
-
request
public AsyncServerPipeline.RequestContentStage request()
Configures the pipeline to process the incoming request message stream.
-
-