Class WebSocketRouting.Builder

java.lang.Object
io.helidon.webserver.websocket.WebSocketRouting.Builder
All Implemented Interfaces:
Builder<WebSocketRouting.Builder,Routing>, Supplier<Routing>
Enclosing class:
WebSocketRouting

public static class WebSocketRouting.Builder extends Object implements Builder<WebSocketRouting.Builder,Routing>
Fluent API builder for WebSocketRouting.
  • Method Details

    • endpoint

      public WebSocketRouting.Builder endpoint(String path, Class<?> endpointClass)
      Add endpoint.
      Parameters:
      path - path of the endpoint
      endpointClass - annotated endpoint class
      Returns:
      updated builder
    • endpoint

      public WebSocketRouting.Builder endpoint(Class<?> endpointClass)
      Add endpoint.
      Parameters:
      endpointClass - annotated endpoint class
      Returns:
      updated builder
    • endpoint

      public WebSocketRouting.Builder endpoint(String path, jakarta.websocket.server.ServerEndpointConfig serverEndpointConfig)
      Add endpoint.
      Parameters:
      path - path of the endpoint
      serverEndpointConfig - Jakarta WebSocket endpoint configuration
      Returns:
      updated builder
    • endpoint

      public WebSocketRouting.Builder endpoint(jakarta.websocket.server.ServerEndpointConfig serverEndpointConfig)
      Add endpoint.
      Parameters:
      serverEndpointConfig - Jakarta WebSocket endpoint configuration
      Returns:
      updated builder
    • extension

      public WebSocketRouting.Builder extension(jakarta.websocket.Extension extension)
      Add Jakarta WebSocket extension.
      Parameters:
      extension - Jakarta WebSocket extension
      Returns:
      updated builder
    • executor

      public WebSocketRouting.Builder executor(ExecutorService executorService)
      ExecutorService supplying threads for execution of endpoint methods.
      Parameters:
      executorService - executorService supplying threads for execution of endpoint methods
      Returns:
      updated builder
    • build

      public WebSocketRouting build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<WebSocketRouting.Builder,Routing>
      Returns:
      instance of the built type