java.lang.Object
io.helidon.webserver.http.DirectHandlers.Builder
- All Implemented Interfaces:
Builder<DirectHandlers.Builder,
,DirectHandlers> Supplier<DirectHandlers>
- Enclosing class:
DirectHandlers
public static class DirectHandlers.Builder
extends Object
implements Builder<DirectHandlers.Builder,DirectHandlers>
Fluent API builder for
DirectHandlers
.-
Method Summary
Modifier and TypeMethodDescriptionaddHandler
(DirectHandler.EventType eventType, DirectHandler handler) Add a handler.build()
Build the instance from this builder.defaults
(DirectHandlers handlers) Add defaults for even types not supported by the created handlers.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<DirectHandlers.Builder,
DirectHandlers> - Returns:
- instance of the built type
-
addHandler
Add a handler.- Parameters:
eventType
- event type to handlehandler
- handler to handle that type- Returns:
- updated builder
-
defaults
Add defaults for even types not supported by the created handlers.- Parameters:
handlers
- handlers to use as defaults- Returns:
- updated builder
-