- 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 TyrusSupportbuild()Build the instance from this builder.TyrusSupport.Builderregister(Class<?> endpointClass)Register an endpoint class.TyrusSupport.Builderregister(javax.websocket.Extension extension)Register an extension.TyrusSupport.Builderregister(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:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<TyrusSupport>- Returns:
- instance of the built type
-
-