Package io.helidon.microprofile.tyrus
Class TyrusApplication.Builder
java.lang.Object
io.helidon.microprofile.tyrus.TyrusApplication.Builder
- Enclosing class:
TyrusApplication
Fluent API builder to create
TyrusApplication
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionannotatedEndpoint
(Class<?> annotatedEndpoint) Add single annotated endpoint.applicationClass
(Class<? extends jakarta.websocket.server.ServerApplicationConfig> applicationClass) Set an application class in the builder.build()
Builds application.extension
(jakarta.websocket.Extension extension) Add single extension.programmaticEndpoint
(Class<? extends jakarta.websocket.Endpoint> programmaticEndpoint) Add single programmatic endpoint.
-
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
Add single annotated endpoint.- Parameters:
annotatedEndpoint
- Annotated endpoint.- Returns:
- The builder.
-
extension
Add single extension.- Parameters:
extension
- Extension.- Returns:
- The builder.
-
build
Builds application.- Returns:
- The application.
-