java.lang.Object
io.helidon.webserver.websocket.WsUpgrader
- All Implemented Interfaces:
Http1Upgrader
Http1Upgrader implementation to upgrade from HTTP/1.1 to WebSocket.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.helidon.http.HeaderNameWebsocket protocol header name.static final io.helidon.http.HeaderNameWebsocket protocol header name.protected static final StringSupported version.protected static final io.helidon.http.HeaderSupported version header.protected static final StringSwitching response prefix.protected static final StringSwitching response suffix.static final io.helidon.http.HeaderNameWebsocket key header name.static final io.helidon.http.HeaderNameWebsocket version header name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic WsUpgraderWebSocket upgrader for HTTP/1.protected Stringhash(ConnectionContext ctx, String wsKey) origins()upgrade(ConnectionContext ctx, io.helidon.http.HttpPrologue prologue, io.helidon.http.WritableHeaders<?> headers)
-
Field Details
-
WS_KEY
public static final io.helidon.http.HeaderName WS_KEYWebsocket key header name. -
WS_VERSION
public static final io.helidon.http.HeaderName WS_VERSIONWebsocket version header name. -
PROTOCOL
public static final io.helidon.http.HeaderName PROTOCOLWebsocket protocol header name. -
EXTENSIONS
public static final io.helidon.http.HeaderName EXTENSIONSWebsocket protocol header name. -
SWITCHING_PROTOCOL_PREFIX
Switching response prefix.- See Also:
-
SWITCHING_PROTOCOLS_SUFFIX
Switching response suffix.- See Also:
-
SUPPORTED_VERSION
Supported version.- See Also:
-
SUPPORTED_VERSION_HEADER
protected static final io.helidon.http.Header SUPPORTED_VERSION_HEADERSupported version header.
-
-
Constructor Details
-
WsUpgrader
-
-
Method Details
-
create
WebSocket upgrader for HTTP/1.- Parameters:
config- configuration of web socket protocol- Returns:
- a new upgrader
-
supportedProtocol
- Specified by:
supportedProtocolin interfaceHttp1Upgrader
-
upgrade
public ServerConnection upgrade(ConnectionContext ctx, io.helidon.http.HttpPrologue prologue, io.helidon.http.WritableHeaders<?> headers) - Specified by:
upgradein interfaceHttp1Upgrader
-
anyOrigin
protected boolean anyOrigin() -
origins
-
hash
-