java.lang.Object
io.helidon.webserver.websocket.WsRouting
All Implemented Interfaces:
Routing, ServerLifecycle

public class WsRouting extends Object implements Routing
WebSocket specific routing.
  • Method Details

    • routingType

      public Class<? extends Routing> routingType()
      Description copied from interface: Routing
      The class used by a Router to identify this Routing type and associate a connection with it.
      Specified by:
      routingType in interface Routing
      Returns:
      this routing type
    • builder

      public static WsRouting.Builder builder()
      Builder for WebSocket routing.
      Returns:
      new builder
    • empty

      public static WsRouting empty()
      Emtpy WebSocket routing.
      Returns:
      empty routing
    • beforeStart

      public void beforeStart()
      Description copied from interface: ServerLifecycle
      Before server start.
      Specified by:
      beforeStart in interface ServerLifecycle
    • afterStop

      public void afterStop()
      Description copied from interface: ServerLifecycle
      After server stop.
      Specified by:
      afterStop in interface ServerLifecycle
    • findRoute

      public WsRoute findRoute(HttpPrologue prologue)
      Find a route based on the provided prologue.
      Parameters:
      prologue - prologue with path and other request information
      Returns:
      found route