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(ServerHttpRequest request,
ServerHttpResponse response,
String selectedProtocol,
List<javax.websocket.Extension> selectedExtensions,
javax.websocket.Endpoint endpoint) |
getContainer, getSupportedExtensions, upgrade
public String[] getSupportedVersions()
RequestUpgradeStrategy
protected List<WebSocketExtension> getInstalledExtensions(javax.websocket.WebSocketContainer container)
getInstalledExtensions
in class AbstractStandardUpgradeStrategy
public void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<javax.websocket.Extension> selectedExtensions, javax.websocket.Endpoint endpoint) throws HandshakeFailureException
upgradeInternal
in class AbstractStandardUpgradeStrategy
HandshakeFailureException
protected org.glassfish.tyrus.websockets.WebSocketApplication createTyrusEndpoint(org.glassfish.tyrus.core.EndpointWrapper endpoint)