Class UndertowRequestUpgradeStrategy
java.lang.Object
org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
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.
 Requires Undertow 1.3.5+ as of Spring Framework 5.0.
- Since:
- 4.0.1
- Author:
- Rossen Stoyanchev
- 
Field SummaryFields inherited from class org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategylogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionio.undertow.websockets.jsr.ServerWebSocketContainergetContainer(HttpServletRequest request) String[]Return the supported WebSocket protocol versions.protected voidupgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) Methods inherited from class org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategygetHttpServletRequest, getHttpServletResponse, getInstalledExtensions, getSupportedExtensions, upgrade
- 
Constructor Details- 
UndertowRequestUpgradeStrategypublic UndertowRequestUpgradeStrategy()
 
- 
- 
Method Details- 
getSupportedVersionsDescription copied from interface:RequestUpgradeStrategyReturn the supported WebSocket protocol versions.
- 
upgradeInternalprotected void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, @Nullable String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) throws HandshakeFailureException - Specified by:
- upgradeInternalin class- AbstractStandardUpgradeStrategy
- Throws:
- HandshakeFailureException
 
- 
getContainer- Overrides:
- getContainerin class- AbstractStandardUpgradeStrategy
 
 
-