public abstract class AbstractStandardUpgradeStrategy extends java.lang.Object implements RequestUpgradeStrategy
RequestUpgradeStrategy for containers that support standard Java WebSocket.| Constructor and Description |
|---|
AbstractStandardUpgradeStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
upgrade(ServerHttpRequest request,
ServerHttpResponse response,
java.lang.String protocol,
WebSocketHandler handler)
Perform runtime specific steps to complete the upgrade.
|
protected abstract void |
upgradeInternal(ServerHttpRequest request,
ServerHttpResponse response,
java.lang.String selectedProtocol,
javax.websocket.Endpoint endpoint) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedVersionsprotected final Log logger
public void upgrade(ServerHttpRequest request, ServerHttpResponse response, java.lang.String protocol, WebSocketHandler handler) throws java.io.IOException, HandshakeFailureException
RequestUpgradeStrategyupgrade in interface RequestUpgradeStrategyhandler - the handler for WebSocket messagesHandshakeFailureException - thrown when handshake processing failed to
complete due to an internal, unrecoverable error, i.e. a server error as
opposed to a failure to successfully negotiate the requirements of the
handshake request.java.io.IOExceptionprotected abstract void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, java.lang.String selectedProtocol, javax.websocket.Endpoint endpoint) throws java.io.IOException, HandshakeFailureException
java.io.IOExceptionHandshakeFailureException