public class GlassFishRequestUpgradeStrategy extends AbstractStandardUpgradeStrategy
RequestUpgradeStrategy that provides support for GlassFish 4 and beyond.logger| Constructor and Description |
|---|
GlassFishRequestUpgradeStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected org.glassfish.tyrus.websockets.WebSocketApplication |
createTyrusEndpoint(org.glassfish.tyrus.core.EndpointWrapper endpoint) |
protected List<WebSocketExtension> |
getInstalledExtensions(javax.websocket.WebSocketContainer container) |
String[] |
getSupportedVersions()
Return the supported WebSocket protocol versions.
|
void |
upgradeInternal(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
String selectedProtocol,
List<javax.websocket.Extension> selectedExtensions,
javax.websocket.Endpoint endpoint) |
getContainer, getHttpServletRequest, getHttpServletResponse, getSupportedExtensions, upgradepublic String[] getSupportedVersions()
RequestUpgradeStrategyprotected List<WebSocketExtension> getInstalledExtensions(javax.websocket.WebSocketContainer container)
getInstalledExtensions in class AbstractStandardUpgradeStrategypublic void upgradeInternal(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
String selectedProtocol,
List<javax.websocket.Extension> selectedExtensions,
javax.websocket.Endpoint endpoint)
throws HandshakeFailureException
upgradeInternal in class AbstractStandardUpgradeStrategyHandshakeFailureExceptionprotected org.glassfish.tyrus.websockets.WebSocketApplication createTyrusEndpoint(org.glassfish.tyrus.core.EndpointWrapper endpoint)