Class AsyncServerPipeline.RequestHandlingStage<I,O>
- java.lang.Object
-
- org.apache.hc.core5.http.nio.support.AsyncServerPipeline.RequestHandlingStage<I,O>
-
- Enclosing class:
- AsyncServerPipeline
public static class AsyncServerPipeline.RequestHandlingStage<I,O> extends java.lang.ObjectRequest handling stage.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncServerPipeline.ExceptionStage<I,O>errorMessage(Resolver<java.lang.Exception,java.lang.String> messageMapper)Configures the pipeline to resolve the exception to a response error message.AsyncServerPipeline.ExceptionStage<I,O>exception(Resolver<java.lang.Exception,AsyncResponseProducer> exceptionMapper)Configures the pipeline to resolve the exception to a response message stream.AsyncServerPipeline.CompletionStage<I,O>handle(ExchangeHandler<I,O> exchangeHandler)Configures the pipeline to handle the message exchange by generating a response object based on the properties of the request object.
-
-
-
Method Detail
-
exception
public AsyncServerPipeline.ExceptionStage<I,O> exception(Resolver<java.lang.Exception,AsyncResponseProducer> exceptionMapper)
Configures the pipeline to resolve the exception to a response message stream.
-
errorMessage
public AsyncServerPipeline.ExceptionStage<I,O> errorMessage(Resolver<java.lang.Exception,java.lang.String> messageMapper)
Configures the pipeline to resolve the exception to a response error message. The response status code will be determined by default based on the exception type.
-
handle
public AsyncServerPipeline.CompletionStage<I,O> handle(ExchangeHandler<I,O> exchangeHandler)
Configures the pipeline to handle the message exchange by generating a response object based on the properties of the request object.
-
-