Class TomcatRequestUpgradeStrategy
java.lang.Object
org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategy
org.springframework.web.socket.server.standard.TomcatRequestUpgradeStrategy
- All Implemented Interfaces:
- RequestUpgradeStrategy
A WebSocket 
RequestUpgradeStrategy for Apache Tomcat. Compatible with Tomcat 10
 and higher, in particular with Tomcat 10.0 (not based on Jakarta WebSocket 2.1 yet).
 To modify properties of the underlying ServerContainer
 you can use ServletServerContainerFactoryBean in XML configuration or,
 when using Java configuration, access the container instance through the
 "jakarta.websocket.server.ServerContainer" ServletContext attribute.
- Since:
- 4.0
- Author:
- Rossen Stoyanchev, Juergen Hoeller
- See Also:
- 
- WsServerContainer.upgradeHttpToWebSocket(java.lang.Object, java.lang.Object, 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 TypeMethodDescriptionprotected voidupgradeHttpToWebSocket(HttpServletRequest request, HttpServletResponse response, ServerEndpointConfig endpointConfig, Map<String, String> pathParams) Methods inherited from class org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategygetSupportedVersions, upgradeInternalMethods inherited from class org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategygetContainer, getHttpServletRequest, getHttpServletResponse, getInstalledExtensions, getSupportedExtensions, upgrade
- 
Constructor Details- 
TomcatRequestUpgradeStrategypublic TomcatRequestUpgradeStrategy()
 
- 
- 
Method Details- 
upgradeHttpToWebSocketprotected void upgradeHttpToWebSocket(HttpServletRequest request, HttpServletResponse response, ServerEndpointConfig endpointConfig, Map<String, String> pathParams) throws Exception- Overrides:
- upgradeHttpToWebSocketin class- StandardWebSocketUpgradeStrategy
- Throws:
- Exception
 
 
-