spring-framework / org.springframework.web.socket.server.standard / WebSphereRequestUpgradeStrategy

WebSphereRequestUpgradeStrategy

open class WebSphereRequestUpgradeStrategy : AbstractStandardUpgradeStrategy

WebSphere support for upgrading an HttpServletRequest during a WebSocket handshake. To modify properties of the underlying javax.websocket.server.ServerContainer you can use ServletServerContainerFactoryBean in XML configuration or, when using Java configuration, access the container instance through the "javax.websocket.server.ServerContainer" ServletContext attribute.

Tested with WAS Liberty beta (August 2015) for the upcoming 8.5.5.7 release.

Author
Rossen Stoyanchev

Since
4.2.1

Constructors

<init>

WebSphereRequestUpgradeStrategy()

WebSphere support for upgrading an HttpServletRequest during a WebSocket handshake. To modify properties of the underlying javax.websocket.server.ServerContainer you can use ServletServerContainerFactoryBean in XML configuration or, when using Java configuration, access the container instance through the "javax.websocket.server.ServerContainer" ServletContext attribute.

Tested with WAS Liberty beta (August 2015) for the upcoming 8.5.5.7 release.

Functions

getSupportedVersions

open fun getSupportedVersions(): Array<String>

upgradeInternal

open fun upgradeInternal(httpRequest: ServerHttpRequest, httpResponse: ServerHttpResponse, selectedProtocol: String, selectedExtensions: MutableList<Extension>, endpoint: Endpoint): Unit

Inherited Functions

getSupportedExtensions

open fun getSupportedExtensions(request: ServerHttpRequest): MutableList<WebSocketExtension>

upgrade

open fun upgrade(request: ServerHttpRequest, response: ServerHttpResponse, selectedProtocol: String, selectedExtensions: MutableList<WebSocketExtension>, user: Principal, wsHandler: WebSocketHandler, attrs: MutableMap<String, Any>): Unit