Class UndertowRequestUpgradeStrategy
java.lang.Object
org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategy
org.springframework.web.socket.server.standard.UndertowRequestUpgradeStrategy
- All Implemented Interfaces:
- RequestUpgradeStrategy
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).
- Since:
- 4.0.1
- Author:
- Rossen Stoyanchev, Juergen Hoeller
- See Also:
- 
- ServerWebSocketContainer.doUpgrade(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse, jakarta.websocket.server.ServerEndpointConfig, java.util.Map<java.lang.String, java.lang.String>)
 
- 
Field SummaryFields inherited from class org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategylogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionString[]Return the supported WebSocket protocol versions.protected voidupgradeHttpToWebSocket(HttpServletRequest request, HttpServletResponse response, ServerEndpointConfig endpointConfig, Map<String, String> pathParams) Methods inherited from class org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategyupgradeInternalMethods inherited from class org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategygetContainer, getHttpServletRequest, getHttpServletResponse, getInstalledExtensions, getSupportedExtensions, upgrade
- 
Constructor Details- 
UndertowRequestUpgradeStrategypublic UndertowRequestUpgradeStrategy()
 
- 
- 
Method Details- 
getSupportedVersionsDescription copied from interface:RequestUpgradeStrategyReturn the supported WebSocket protocol versions.- Specified by:
- getSupportedVersionsin interface- RequestUpgradeStrategy
- Overrides:
- getSupportedVersionsin class- StandardWebSocketUpgradeStrategy
 
- 
upgradeHttpToWebSocketprotected void upgradeHttpToWebSocket(HttpServletRequest request, HttpServletResponse response, ServerEndpointConfig endpointConfig, Map<String, String> pathParams) throws Exception- Overrides:
- upgradeHttpToWebSocketin class- StandardWebSocketUpgradeStrategy
- Throws:
- Exception
 
 
-