java.lang.Object
io.helidon.nima.websocket.webserver.WsUpgrader
io.helidon.microprofile.tyrus.TyrusUpgrader
- All Implemented Interfaces:
Http1Upgrader
Tyrus connection upgrade provider.
-
Field Summary
Fields inherited from class io.helidon.nima.websocket.webserver.WsUpgrader
EXTENSIONS, PROTOCOL, SUPPORTED_VERSION, SUPPORTED_VERSION_HEADER, SWITCHING_PROTOCOL_PREFIX, SWITCHING_PROTOCOLS_SUFFIX, WS_KEY, WS_VERSION -
Method Summary
Modifier and TypeMethodDescriptionupgrade(ConnectionContext ctx, HttpPrologue prologue, WritableHeaders<?> headers) Upgrade connection.Methods inherited from class io.helidon.nima.websocket.webserver.WsUpgrader
anyOrigin, hash, origins, supportedProtocol
-
Method Details
-
upgrade
public ServerConnection upgrade(ConnectionContext ctx, HttpPrologue prologue, WritableHeaders<?> headers) Description copied from interface:Http1UpgraderUpgrade connection.- Specified by:
upgradein interfaceHttp1Upgrader- Overrides:
upgradein classWsUpgrader- Parameters:
ctx- connection contextprologue- http prologue of the upgrade requestheaders- http headers of the upgrade request- Returns:
- a new connection to use instead of the original
Http1Connection, ornullif the connection cannot be upgraded
-