Class TomcatRequestUpgradeStrategy

All Implemented Interfaces:
RequestUpgradeStrategy

public class TomcatRequestUpgradeStrategy extends StandardWebSocketUpgradeStrategy
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>)