java.lang.Object
io.helidon.webserver.http.DirectHandlers
Configured handlers for expected (and internal) exceptions.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DirectHandlers.Builder
builder()
New builder.static DirectHandlers
create()
Create a new instance with default handlers.void
handle
(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
-