Class TyrusRouting.Builder

java.lang.Object
io.helidon.microprofile.tyrus.TyrusRouting.Builder
All Implemented Interfaces:
Builder<TyrusRouting.Builder,Routing>, Supplier<Routing>
Enclosing class:
TyrusRouting

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

    • endpoint

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

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

      public TyrusRouting.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 TyrusRouting.Builder endpoint(jakarta.websocket.server.ServerEndpointConfig serverEndpointConfig)
      Add endpoint.
      Parameters:
      serverEndpointConfig - Jakarta WebSocket endpoint configuration
      Returns:
      updated builder
    • extension

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

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