public class UndertowRequestUpgradeStrategy extends AbstractStandardUpgradeStrategy
RequestUpgradeStrategy
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.
Modifier and Type | Class and Description |
---|---|
private static class |
UndertowRequestUpgradeStrategy.FallbackStrategy
Strategy for use with Undertow 1.0 to 1.3 before there was a public API
to perform a WebSocket upgrade.
|
Modifier and Type | Field and Description |
---|---|
private static UndertowRequestUpgradeStrategy.FallbackStrategy |
FALLBACK_STRATEGY |
private static boolean |
HAS_DO_UPGRADE |
private static java.lang.String[] |
VERSIONS |
logger
Constructor and Description |
---|
UndertowRequestUpgradeStrategy() |
Modifier and Type | Method and Description |
---|---|
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<Extension> selectedExtensions,
Endpoint endpoint) |
getHttpServletRequest, getHttpServletResponse, getInstalledExtensions, getSupportedExtensions, upgrade
private static final boolean HAS_DO_UPGRADE
private static final UndertowRequestUpgradeStrategy.FallbackStrategy FALLBACK_STRATEGY
private static final java.lang.String[] VERSIONS
public java.lang.String[] getSupportedVersions()
RequestUpgradeStrategy
protected void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, java.lang.String selectedProtocol, java.util.List<Extension> selectedExtensions, Endpoint endpoint) throws HandshakeFailureException
upgradeInternal
in class AbstractStandardUpgradeStrategy
HandshakeFailureException
public ServerWebSocketContainer getContainer(HttpServletRequest request)
getContainer
in class AbstractStandardUpgradeStrategy