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

UndertowRequestUpgradeStrategy

open class UndertowRequestUpgradeStrategy : AbstractStandardUpgradeStrategy

A WebSocket RequestUpgradeStrategy for WildFly and its underlying Undertow web server. Also compatible with embedded Undertow usage.

Requires Undertow 1.3.5+ as of Spring Framework 5.0.

Author
Rossen Stoyanchev

Since
4.0.1

Constructors

<init>

UndertowRequestUpgradeStrategy()

A WebSocket RequestUpgradeStrategy for WildFly and its underlying Undertow web server. Also compatible with embedded Undertow usage.

Requires Undertow 1.3.5+ as of Spring Framework 5.0.

Functions

getContainer

open fun getContainer(request: HttpServletRequest): ServerWebSocketContainer

getSupportedVersions

open fun getSupportedVersions(): Array<String>

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