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 |
---|---|
String[] |
getSupportedVersions()
Return the supported WebSocket protocol versions.
|
void |
upgradeInternal(ServerHttpRequest httpRequest,
ServerHttpResponse httpResponse,
String selectedProtocol,
List<Extension> selectedExtensions,
Endpoint endpoint) |
getContainer, getHttpServletRequest, getHttpServletResponse, getInstalledExtensions, getSupportedExtensions, upgrade
public String[] getSupportedVersions()
RequestUpgradeStrategy
public void upgradeInternal(ServerHttpRequest httpRequest, ServerHttpResponse httpResponse, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) throws HandshakeFailureException
upgradeInternal
in class AbstractStandardUpgradeStrategy
HandshakeFailureException