Class TomcatRequestUpgradeStrategy
java.lang.Object
org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
org.springframework.web.socket.server.standard.TomcatRequestUpgradeStrategy
- All Implemented Interfaces:
- RequestUpgradeStrategy
A WebSocket 
RequestUpgradeStrategy for Apache Tomcat. Compatible with
 all versions of Tomcat that support JSR-356, i.e. Tomcat 7.0.47+ and higher.
 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
- 
Field SummaryFields inherited from class org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategylogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.tomcat.websocket.server.WsServerContainergetContainer(HttpServletRequest request) String[]Return the supported WebSocket protocol versions.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- 
TomcatRequestUpgradeStrategypublic TomcatRequestUpgradeStrategy()
 
- 
- 
Method Details- 
getSupportedVersionsDescription copied from interface:RequestUpgradeStrategyReturn the supported WebSocket protocol versions.
- 
upgradeInternalpublic void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, @Nullable String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) throws HandshakeFailureException - Specified by:
- upgradeInternalin class- AbstractStandardUpgradeStrategy
- Throws:
- HandshakeFailureException
 
- 
getContainerpublic org.apache.tomcat.websocket.server.WsServerContainer getContainer(HttpServletRequest request) - Overrides:
- getContainerin class- AbstractStandardUpgradeStrategy
 
 
-