public abstract class AbstractTyrusRequestUpgradeStrategy extends AbstractStandardUpgradeStrategy
Works with Tyrus 1.3.5 (WebLogic 12.1.3) and Tyrus 1.7 (GlassFish 4.0.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 List<WebSocketExtension> |
getInstalledExtensions(WebSocketContainer container) |
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,
String subProtocol,
List<Extension> extensions,
Endpoint endpoint) |
getContainer, getHttpServletRequest, getHttpServletResponse, getSupportedExtensions, upgrade
public String[] getSupportedVersions()
RequestUpgradeStrategy
protected List<WebSocketExtension> getInstalledExtensions(WebSocketContainer container)
getInstalledExtensions
in class AbstractStandardUpgradeStrategy
protected abstract AbstractTyrusRequestUpgradeStrategy.TyrusEndpointHelper getEndpointHelper()
public void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String subProtocol, List<Extension> extensions, Endpoint endpoint) throws HandshakeFailureException
upgradeInternal
in class AbstractStandardUpgradeStrategy
HandshakeFailureException
protected abstract void handleSuccess(HttpServletRequest request, HttpServletResponse response, org.glassfish.tyrus.spi.WebSocketEngine.UpgradeInfo upgradeInfo, org.glassfish.tyrus.core.TyrusUpgradeResponse upgradeResponse) throws IOException, ServletException
IOException
ServletException