Top Description Constructors Methods
org.springframework.web.socket.server.standard

public Class TomcatRequestUpgradeStrategy

extends StandardWebSocketUpgradeStrategy
Class Inheritance
Imports
java.util.Map, jakarta.servlet.http.HttpServletRequest, .HttpServletResponse, jakarta.websocket.server.ServerEndpointConfig, org.apache.tomcat.websocket.server.WsServerContainer

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 jakarta.websocket.server.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.

Authors
Rossen Stoyanchev, Juergen Hoeller
Since
4.0
See Also
org.apache.tomcat.websocket.server.WsServerContainer#upgradeHttpToWebSocket

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategy:
getSupportedVersionsupgradeInternal

Constructor Detail

TomcatRequestUpgradeStrategyback to summary
public TomcatRequestUpgradeStrategy()

Method Detail

upgradeHttpToWebSocketback to summary
protected void upgradeHttpToWebSocket(HttpServletRequest request, HttpServletResponse response, ServerEndpointConfig endpointConfig, Map<String, String> pathParams) throws Exception

Overrides org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategy.upgradeHttpToWebSocket.

Annotations
@Override