Class AsyncJsonServerPipeline.RequestHandlingStage<I,O>
java.lang.Object
org.apache.hc.core5.jackson2.http.AsyncJsonServerPipeline.RequestHandlingStage<I,O>
- Enclosing class:
- AsyncJsonServerPipeline
Request handling stage.
-
Method Summary
Modifier and TypeMethodDescriptionerrorMessage(Resolver<Exception, String> messageMapper) Configures the pipeline to resolve the exception to a response error message.exception(Resolver<Exception, AsyncResponseProducer> exceptionMapper) Configures the pipeline to resolve the exception to a response message stream.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 Details
-
exception
public AsyncJsonServerPipeline.ExceptionStage<I,O> exception(Resolver<Exception, AsyncResponseProducer> exceptionMapper) Configures the pipeline to resolve the exception to a response message stream. -
errorMessage
public AsyncJsonServerPipeline.ExceptionStage<I,O> errorMessage(Resolver<Exception, 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
Configures the pipeline to handle the message exchange by generating a response object based on the properties of the request object.
-