- java.lang.Object
-
- io.helidon.webserver.tyrus.TyrusSupport.Builder
-
- All Implemented Interfaces:
Builder<TyrusSupport>
,Supplier<TyrusSupport>
- Enclosing class:
- TyrusSupport
public static class TyrusSupport.Builder extends Object implements Builder<TyrusSupport>
Builder for convenient way to createTyrusSupport
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TyrusSupport
build()
Build the instance from this builder.TyrusSupport.Builder
register(Class<?> endpointClass)
Register an endpoint class.TyrusSupport.Builder
register(javax.websocket.Extension extension)
Register an extension.TyrusSupport.Builder
register(javax.websocket.server.ServerEndpointConfig endpointConfig)
Register an endpoint config.
-
-
-
Method Detail
-
register
public TyrusSupport.Builder register(Class<?> endpointClass)
Register an endpoint class.- Parameters:
endpointClass
- The class.- Returns:
- The builder.
-
register
public TyrusSupport.Builder register(javax.websocket.server.ServerEndpointConfig endpointConfig)
Register an endpoint config.- Parameters:
endpointConfig
- The endpoint config.- Returns:
- The builder.
-
register
public TyrusSupport.Builder register(javax.websocket.Extension extension)
Register an extension.- Parameters:
extension
- The extension.- Returns:
- The builder.
-
build
public TyrusSupport build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<TyrusSupport>
- Returns:
- instance of the built type
-
-