Class StandardWebSocketUpgradeStrategy

java.lang.Object
org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategy
All Implemented Interfaces:
RequestUpgradeStrategy
Direct Known Subclasses:
TomcatRequestUpgradeStrategy, UndertowRequestUpgradeStrategy, WebSphereRequestUpgradeStrategy

public class StandardWebSocketUpgradeStrategy extends AbstractStandardUpgradeStrategy
A WebSocket RequestUpgradeStrategy for the Jakarta WebSocket API 2.1+.

This strategy serves as a fallback if no specific server has been detected. It can also be used with Jakarta EE 10 level servers such as Tomcat 10.1 and Undertow 2.3 directly, relying on their built-in Jakarta WebSocket 2.1 support.

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:
6.0
Author:
Juergen Hoeller, Rossen Stoyanchev
See Also: