Package io.helidon.webserver.websocket
Class WsRouting.Builder
java.lang.Object
io.helidon.webserver.websocket.WsRouting.Builder
- All Implemented Interfaces:
io.helidon.common.Builder<WsRouting.Builder,,WsRouting> Supplier<WsRouting>
- Enclosing class:
WsRouting
public static class WsRouting.Builder
extends Object
implements io.helidon.common.Builder<WsRouting.Builder,WsRouting>
Fluent API builder for
WsRouting.-
Method Summary
Modifier and TypeMethodDescriptionbuild()endpoint(String path, WsListener listener) Add endpoint.endpoint(String path, Supplier<WsListener> listener) Add endpoint.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
get, identity, update
-
Method Details
-
build
- Specified by:
buildin interfaceio.helidon.common.Builder<WsRouting.Builder,WsRouting>
-
endpoint
Add endpoint.- Parameters:
path- path of the endpointlistener- listener to use, the same instance will be used for all connections- Returns:
- updated builder
-
endpoint
Add endpoint.- Parameters:
path- path of the endpointlistener- listener supplier, a new instance will be used for each connection- Returns:
- updated builder
-