Package io.helidon.webserver.websocket
Class WsUpgradeProvider
java.lang.Object
io.helidon.webserver.websocket.WsUpgradeProvider
- All Implemented Interfaces:
Http1UpgradeProvider<WsConfig>
- Direct Known Subclasses:
TyrusUpgradeProvider
ServiceLoader
provider implementation for upgrade from HTTP/1.1 to WebSocket.-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
WebSocket server connection provider configuration node name. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(WsConfig config, ProtocolConfigs configs) Creates an instance of HTTP/HTTP/1.1 connection upgrader.Type of supported configuration.Provider's type.
-
Field Details
-
CONFIG_NAME
WebSocket server connection provider configuration node name.- See Also:
-
-
Constructor Details
-
WsUpgradeProvider
Deprecated.This constructor is only to be used byServiceLoader
, useWsUpgrader.create(WsConfig)
for manual setupCreate a new instance with default configuration.
-
-
Method Details
-
protocolType
Description copied from interface:Http1UpgradeProvider
Provider's type.- Specified by:
protocolType
in interfaceHttp1UpgradeProvider<WsConfig>
- Returns:
- protocol type (also the type expected in configuration)
-
protocolConfigType
Description copied from interface:Http1UpgradeProvider
Type of supported configuration.- Specified by:
protocolConfigType
in interfaceHttp1UpgradeProvider<WsConfig>
- Returns:
- protocol config type
-
create
Description copied from interface:Http1UpgradeProvider
Creates an instance of HTTP/HTTP/1.1 connection upgrader.- Specified by:
create
in interfaceHttp1UpgradeProvider<WsConfig>
- Parameters:
config
- configuration of this protocolconfigs
- configuration for possible nested protocols- Returns:
- new server HTTP/1.1 connection upgrade selector
-
ServiceLoader
, useWsUpgrader.create(WsConfig)
for manual setup