public class UndertowRequestUpgradeStrategy extends AbstractStandardUpgradeStrategy
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.
logger
Constructor and Description |
---|
UndertowRequestUpgradeStrategy() |
Modifier and Type | Method and Description |
---|---|
io.undertow.websockets.jsr.ServerWebSocketContainer |
getContainer(HttpServletRequest request) |
java.lang.String[] |
getSupportedVersions()
Return the supported WebSocket protocol versions.
|
protected void |
upgradeInternal(ServerHttpRequest request,
ServerHttpResponse response,
java.lang.String selectedProtocol,
java.util.List<javax.websocket.Extension> selectedExtensions,
javax.websocket.Endpoint endpoint) |
getHttpServletRequest, getHttpServletResponse, getInstalledExtensions, getSupportedExtensions, upgrade
public java.lang.String[] getSupportedVersions()
RequestUpgradeStrategy
protected void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, @Nullable java.lang.String selectedProtocol, java.util.List<javax.websocket.Extension> selectedExtensions, javax.websocket.Endpoint endpoint) throws HandshakeFailureException
upgradeInternal
in class AbstractStandardUpgradeStrategy
HandshakeFailureException
public io.undertow.websockets.jsr.ServerWebSocketContainer getContainer(HttpServletRequest request)
getContainer
in class AbstractStandardUpgradeStrategy