类 UndertowRequestUpgradeStrategy
- java.lang.Object
- org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
- org.springframework.web.socket.server.standard.UndertowRequestUpgradeStrategy
- 所有已实现的接口:
RequestUpgradeStrategy
public class UndertowRequestUpgradeStrategy extends AbstractStandardUpgradeStrategy
A WebSocketRequestUpgradeStrategy
for WildFly and its underlying Undertow web server. Also compatible with embedded Undertow usage.Designed for Undertow 1.3.5+ as of Spring Framework 4.3, with a fallback strategy for Undertow 1.0 to 1.3 - as included in WildFly 8.x, 9 and 10.
- 从以下版本开始:
- 4.0.1
- 作者:
- Rossen Stoyanchev
字段概要
从类继承的字段 org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
logger
构造器概要
构造器 构造器 说明 UndertowRequestUpgradeStrategy()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 io.undertow.websockets.jsr.ServerWebSocketContainer
getContainer(HttpServletRequest request)
String[]
getSupportedVersions()
Return the supported WebSocket protocol versions.protected void
upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint)
从类继承的方法 org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
getHttpServletRequest, getHttpServletResponse, getInstalledExtensions, getSupportedExtensions, upgrade
构造器详细资料
UndertowRequestUpgradeStrategy
public UndertowRequestUpgradeStrategy()
方法详细资料
getSupportedVersions
public String[] getSupportedVersions()
从接口复制的说明:RequestUpgradeStrategy
Return the supported WebSocket protocol versions.
upgradeInternal
protected void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) throws HandshakeFailureException
getContainer
public io.undertow.websockets.jsr.ServerWebSocketContainer getContainer(HttpServletRequest request)