java.lang.Object
io.helidon.webserver.http.DirectHandlers
Configured handlers for expected (and internal) exceptions.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier 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
-
builder
New builder.- Returns:
- builder
-
create
Create a new instance with default handlers.- Returns:
- a new instance
-
handler
Get 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
-
handle
Handle an HTTP Exception that occurred when request and response is available.- Parameters:
httpException- exception to handleres- responsekeepAlive- whether to keep the connection alive
-