public abstract class AbstractTyrusRequestUpgradeStrategy extends AbstractStandardUpgradeStrategy
RequestUpgradeStrategy
implementations on top of
JSR-356 based servers which include Tyrus as their WebSocket engine.
Works with Tyrus 1.3.5 (WebLogic 12.1.3), Tyrus 1.7 (GlassFish 4.1.0), Tyrus 1.11 (WebLogic 12.2.1), and Tyrus 1.12 (GlassFish 4.1.1).
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractTyrusRequestUpgradeStrategy.Tyrus135EndpointHelper |
protected static class |
AbstractTyrusRequestUpgradeStrategy.Tyrus17EndpointHelper |
protected static interface |
AbstractTyrusRequestUpgradeStrategy.TyrusEndpointHelper
Helps with the creation, registration, and un-registration of endpoints.
|
logger
Constructor and Description |
---|
AbstractTyrusRequestUpgradeStrategy() |
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractTyrusRequestUpgradeStrategy.TyrusEndpointHelper |
getEndpointHelper() |
protected java.util.List<WebSocketExtension> |
getInstalledExtensions(javax.websocket.WebSocketContainer container) |
java.lang.String[] |
getSupportedVersions()
Return the supported WebSocket protocol versions.
|
protected abstract void |
handleSuccess(HttpServletRequest request,
HttpServletResponse response,
org.glassfish.tyrus.spi.WebSocketEngine.UpgradeInfo upgradeInfo,
org.glassfish.tyrus.core.TyrusUpgradeResponse upgradeResponse) |
void |
upgradeInternal(ServerHttpRequest request,
ServerHttpResponse response,
java.lang.String selectedProtocol,
java.util.List<javax.websocket.Extension> extensions,
javax.websocket.Endpoint endpoint) |
getContainer, getHttpServletRequest, getHttpServletResponse, getSupportedExtensions, upgrade
public java.lang.String[] getSupportedVersions()
RequestUpgradeStrategy
protected java.util.List<WebSocketExtension> getInstalledExtensions(javax.websocket.WebSocketContainer container)
getInstalledExtensions
in class AbstractStandardUpgradeStrategy
public void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, java.lang.String selectedProtocol, java.util.List<javax.websocket.Extension> extensions, javax.websocket.Endpoint endpoint) throws HandshakeFailureException
upgradeInternal
in class AbstractStandardUpgradeStrategy
HandshakeFailureException
protected abstract AbstractTyrusRequestUpgradeStrategy.TyrusEndpointHelper getEndpointHelper()
protected abstract void handleSuccess(HttpServletRequest request, HttpServletResponse response, org.glassfish.tyrus.spi.WebSocketEngine.UpgradeInfo upgradeInfo, org.glassfish.tyrus.core.TyrusUpgradeResponse upgradeResponse) throws java.io.IOException, ServletException
java.io.IOException
ServletException