Class WebSocketApplication.Builder

java.lang.Object
io.helidon.microprofile.tyrus.WebSocketApplication.Builder
Enclosing class:
WebSocketApplication

public static class WebSocketApplication.Builder extends Object
Fluent API builder to create WebSocketApplication instances.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • applicationClass

      public WebSocketApplication.Builder applicationClass(Class<? extends jakarta.websocket.server.ServerApplicationConfig> applicationClass)
      Add an application class in the builder.
      Parameters:
      applicationClass - The application class.
      Returns:
      The builder.
    • programmaticEndpoint

      public WebSocketApplication.Builder programmaticEndpoint(Class<? extends jakarta.websocket.Endpoint> programmaticEndpoint)
      Add single programmatic endpoint.
      Parameters:
      programmaticEndpoint - Programmatic endpoint.
      Returns:
      The builder.
    • annotatedEndpoint

      public WebSocketApplication.Builder annotatedEndpoint(Class<?> annotatedEndpoint)
      Add single annotated endpoint.
      Parameters:
      annotatedEndpoint - Annotated endpoint.
      Returns:
      The builder.
    • extension

      public WebSocketApplication.Builder extension(jakarta.websocket.Extension extension)
      Add single extension.
      Parameters:
      extension - Extension.
      Returns:
      The builder.
    • build

      public WebSocketApplication build()
      Builds application.
      Returns:
      The application.