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.
you can use ServletServerContainerFactoryBean in XML configuration or,
when using Java configuration, access the container instance through the
"jakarta.websocket.server.ServerContainer" ServletContext attribute.
org.apache.tomcat.websocket.server.WsServerContainer#upgradeHttpToWebSocket
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | upgradeHttpToWebSocket(HttpServletRequest request, HttpServletResponse response, ServerEndpointConfig endpointConfig, Map<String, String> pathParams)
|
| TomcatRequestUpgradeStrategy | back to summary |
|---|---|
| public TomcatRequestUpgradeStrategy() | |
| upgradeHttpToWebSocket | back to summary |
|---|---|
protected void upgradeHttpToWebSocket(HttpServletRequest request, HttpServletResponse response, ServerEndpointConfig endpointConfig, Map<String, String> pathParams) throws Exception
| |