public class TomcatRequestUpgradeStrategy extends AbstractStandardUpgradeStrategy
HttpServletRequest during a WebSocket
handshake. To modify properties of the underlying
ServerContainer you can use
ServletServerContainerFactoryBean in XML configuration or if using Java
configuration, access the container instance through the
"javax.websocket.server.ServerContainer" ServletContext attribute.logger| Constructor and Description |
|---|
TomcatRequestUpgradeStrategy() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tomcat.websocket.server.WsServerContainer |
getContainer(HttpServletRequest request) |
String[] |
getSupportedVersions()
Return the supported WebSocket protocol versions.
|
void |
upgradeInternal(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
String selectedProtocol,
List<javax.websocket.Extension> selectedExtensions,
javax.websocket.Endpoint endpoint) |
getHttpServletRequest, getHttpServletResponse, getInstalledExtensions, getSupportedExtensions, upgradepublic String[] getSupportedVersions()
RequestUpgradeStrategypublic void upgradeInternal(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
String selectedProtocol,
List<javax.websocket.Extension> selectedExtensions,
javax.websocket.Endpoint endpoint)
throws HandshakeFailureException
upgradeInternal in class AbstractStandardUpgradeStrategyHandshakeFailureExceptionpublic org.apache.tomcat.websocket.server.WsServerContainer getContainer(HttpServletRequest request)
getContainer in class AbstractStandardUpgradeStrategy