Top Description Fields Constructors Methods
org.springframework.web.socket.server.standard

public Class UndertowRequestUpgradeStrategy

extends StandardWebSocketUpgradeStrategy
Class Inheritance
Imports
java.util.Map, io.undertow.websockets.jsr.ServerWebSocketContainer, jakarta.servlet.http.HttpServletRequest, .HttpServletResponse, jakarta.websocket.server.ServerEndpointConfig

A WebSocket RequestUpgradeStrategy for WildFly and its underlying Undertow web server. Also compatible with embedded Undertow usage.

Designed for Undertow 2.2, also compatible with Undertow 2.3 (which implements Jakarta WebSocket 2.1 as well).

Authors
Rossen Stoyanchev, Juergen Hoeller
Since
4.0.1
See Also
io.undertow.websockets.jsr.ServerWebSocketContainer#doUpgrade

Field Summary

Modifier and TypeField and Description
private static final String[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String[]
protected void
Inherited from org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategy:
upgradeInternal

Field Detail

SUPPORTED_VERSIONSback to summary
private static final String[] SUPPORTED_VERSIONS

Hides org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategy.SUPPORTED_VERSIONS.

Constructor Detail

UndertowRequestUpgradeStrategyback to summary
public UndertowRequestUpgradeStrategy()

Method Detail

getSupportedVersionsback to summary
public String[] getSupportedVersions()

Overrides org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategy.getSupportedVersions.

Implements org.springframework.web.socket.server.RequestUpgradeStrategy.getSupportedVersions.

Doc from org.springframework.web.socket.server.RequestUpgradeStrategy.getSupportedVersions.

Return the supported WebSocket protocol versions.

Annotations
@Override
upgradeHttpToWebSocketback to summary
protected void upgradeHttpToWebSocket(HttpServletRequest request, HttpServletResponse response, ServerEndpointConfig endpointConfig, Map<String, String> pathParams) throws Exception

Overrides org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategy.upgradeHttpToWebSocket.

Annotations
@Override