Class TyrusApplication.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • applicationClass

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

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

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

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

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