public abstract class AbstractGlassFishRequestUpgradeStrategy extends AbstractStandardUpgradeStrategy
ServerContainer
you can use
ServletServerContainerFactoryBean
in XML configuration or if using Java
configuration, access the container instance through the
"javax.websocket.server.ServerContainer" ServletContext attribute.logger
Constructor and Description |
---|
AbstractGlassFishRequestUpgradeStrategy() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.glassfish.tyrus.websockets.WebSocketApplication |
createTyrusEndpoint(org.glassfish.tyrus.core.EndpointWrapper endpoint)
Create the actual TyrusEndpoint
|
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, getInstalledExtensions, getSupportedExtensions, upgrade
public AbstractGlassFishRequestUpgradeStrategy()
public String[] getSupportedVersions()
RequestUpgradeStrategy
public 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 AbstractStandardUpgradeStrategy
HandshakeFailureException
protected abstract org.glassfish.tyrus.websockets.WebSocketApplication createTyrusEndpoint(org.glassfish.tyrus.core.EndpointWrapper endpoint)
endpoint
- The WebSocket endpointTyrusEndpoint