Package io.helidon.microprofile.tyrus
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 createWebSocketApplication
instances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebSocketApplication.Builder
annotatedEndpoint(Class<?> annotatedEndpoint)
Add single annotated endpoint.WebSocketApplication.Builder
applicationClass(Class<? extends javax.websocket.server.ServerApplicationConfig> applicationClass)
Set an application class in the builder.WebSocketApplication
build()
Builds application.WebSocketApplication.Builder
extension(javax.websocket.Extension extension)
Add single extension.WebSocketApplication.Builder
programmaticEndpoint(Class<? extends javax.websocket.Endpoint> programmaticEndpoint)
Add single programmatic endpoint.
-
-
-
Method Detail
-
applicationClass
public WebSocketApplication.Builder applicationClass(Class<? extends javax.websocket.server.ServerApplicationConfig> applicationClass)
Set an application class in the builder.- Parameters:
applicationClass
- The application class.- Returns:
- The builder.
-
programmaticEndpoint
public WebSocketApplication.Builder programmaticEndpoint(Class<? extends javax.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(javax.websocket.Extension extension)
Add single extension.- Parameters:
extension
- Extension.- Returns:
- The builder.
-
build
public WebSocketApplication build()
Builds application.- Returns:
- The application.
-
-