Package io.helidon.microprofile.tyrus
Class WebSocketApplication.Builder
java.lang.Object
io.helidon.microprofile.tyrus.WebSocketApplication.Builder
- Enclosing class:
- WebSocketApplication
Fluent API builder to create
WebSocketApplication
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionannotatedEndpoint
(Class<?> annotatedEndpoint) Add single annotated endpoint.applicationClass
(Class<? extends jakarta.websocket.server.ServerApplicationConfig> applicationClass) Add 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 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
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.
-