java.lang.Object
io.helidon.webserver.websocket.WsUpgrader
io.helidon.microprofile.tyrus.TyrusUpgrader
- All Implemented Interfaces:
Http1Upgrader
Tyrus connection upgrade provider.
-
Field Summary
Fields inherited from class io.helidon.webserver.websocket.WsUpgrader
EXTENSIONS, PROTOCOL, SUPPORTED_VERSION, SUPPORTED_VERSION_HEADER, SWITCHING_PROTOCOL_PREFIX, SWITCHING_PROTOCOLS_SUFFIX, WS_KEY, WS_VERSION
-
Method Summary
Modifier and TypeMethodDescriptionstatic TyrusUpgrader
Create a new configured instance of Tyrus upgrader.origins()
upgrade
(ConnectionContext ctx, HttpPrologue prologue, WritableHeaders<?> headers) Upgrade connection.Methods inherited from class io.helidon.webserver.websocket.WsUpgrader
anyOrigin, hash, supportedProtocol
-
Method Details
-
create
Create a new configured instance of Tyrus upgrader.- Parameters:
config
- configuration of WebSocket- Returns:
- a new HTTP/1 upgrader
-
upgrade
public ServerConnection upgrade(ConnectionContext ctx, HttpPrologue prologue, WritableHeaders<?> headers) Description copied from interface:Http1Upgrader
Upgrade connection.- Specified by:
upgrade
in interfaceHttp1Upgrader
- Overrides:
upgrade
in 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
, ornull
if the connection cannot be upgraded
-
origins
- Overrides:
origins
in classWsUpgrader
-