public class WebSphereRequestUpgradeStrategy extends AbstractStandardUpgradeStrategy
HttpServletRequest
during a
WebSocket handshake. To modify properties of the underlying
ServerContainer
you can use
ServletServerContainerFactoryBean
in XML configuration or, when using
Java configuration, access the container instance through the
"javax.websocket.server.ServerContainer" ServletContext attribute.
Tested with WAS Liberty beta (August 2015) for the upcoming 8.5.5.7 release.
logger
Constructor and Description |
---|
WebSphereRequestUpgradeStrategy() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getSupportedVersions()
Return the supported WebSocket protocol versions.
|
void |
upgradeInternal(ServerHttpRequest httpRequest,
ServerHttpResponse httpResponse,
java.lang.String selectedProtocol,
java.util.List<javax.websocket.Extension> selectedExtensions,
javax.websocket.Endpoint endpoint) |
getContainer, getHttpServletRequest, getHttpServletResponse, getInstalledExtensions, getSupportedExtensions, upgrade
public java.lang.String[] getSupportedVersions()
RequestUpgradeStrategy
public void upgradeInternal(ServerHttpRequest httpRequest, ServerHttpResponse httpResponse, java.lang.String selectedProtocol, java.util.List<javax.websocket.Extension> selectedExtensions, javax.websocket.Endpoint endpoint) throws HandshakeFailureException
upgradeInternal
in class AbstractStandardUpgradeStrategy
HandshakeFailureException