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(WebSocketContainer container) |
String[] |
getSupportedVersions()
Return the supported WebSocket protocol versions.
|
void |
upgradeInternal(ServerHttpRequest request,
ServerHttpResponse response,
String selectedProtocol,
List<Extension> selectedExtensions,
Endpoint endpoint) |
getContainer, getHttpServletRequest, getHttpServletResponse, getSupportedExtensions, upgradepublic String[] getSupportedVersions()
RequestUpgradeStrategyprotected List<WebSocketExtension> getInstalledExtensions(WebSocketContainer container)
getInstalledExtensions in class AbstractStandardUpgradeStrategypublic void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) throws HandshakeFailureException
upgradeInternal in class AbstractStandardUpgradeStrategyHandshakeFailureExceptionprotected org.glassfish.tyrus.websockets.WebSocketApplication createTyrusEndpoint(org.glassfish.tyrus.core.EndpointWrapper endpoint)