java.lang.Object
io.helidon.webserver.http.DirectHandlers
Configured handlers for expected (and internal) exceptions.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic DirectHandlers.Builderbuilder()New builder.static DirectHandlerscreate()Create a new instance with default handlers.voidhandle(RequestException httpException, ServerResponse res, boolean keepAlive) Handle an HTTP Exception that occurred when request and response is available.handler(DirectHandler.EventType eventType) Get handler for the event type.
- 
Method Details- 
builderNew builder.- Returns:
- builder
 
- 
createCreate a new instance with default handlers.- Returns:
- a new instance
 
- 
handlerGet handler for the event type. If no custom handler is defined, the default handler will be returned.- Parameters:
- eventType- event type
- Returns:
- handler to use
 
- 
handleHandle an HTTP Exception that occurred when request and response is available.- Parameters:
- httpException- exception to handle
- res- response
- keepAlive- whether to keep the connection alive
 
 
-