Class WsRouting
java.lang.Object
io.helidon.webserver.websocket.WsRouting
- All Implemented Interfaces:
Routing, ServerLifecycle
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidAfter server stop.voidBefore server start.static WsRouting.Builderbuilder()Builder for WebSocket routing.static WsRoutingempty()Empty WebSocket routing.findRoute(HttpPrologue prologue) Find a route based on the provided prologue.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ServerLifecycle
afterStartModifier and TypeMethodDescriptiondefault voidafterStart(WebServer webServer) After server start.
-
Method Details
-
builder
-
empty
-
routingType
-
beforeStart
public void beforeStart()Description copied from interface:ServerLifecycleBefore server start. If this method throws an exception, server startup fails and the server attempts startup cleanup.- Specified by:
beforeStartin interfaceServerLifecycle
-
afterStop
public void afterStop()Description copied from interface:ServerLifecycleAfter server stop. Exceptions thrown by this method failWebServer.stop()after listener cleanup has been attempted. If this method is invoked during startup cleanup, exceptions may failWebServer.start(). If this method is invoked during suspend or resume failure cleanup, exceptions may be suppressed on the original suspend or resume failure.- Specified by:
afterStopin interfaceServerLifecycle
-
findRoute
Find a route based on the provided prologue.- Parameters:
prologue- prologue with path and other request information- Returns:
- found route
-