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