public abstract class AbstractStandardUpgradeStrategy extends Object implements RequestUpgradeStrategy
RequestUpgradeStrategy implementations that build on the
standard WebSocket API for Java.| Constructor and Description |
|---|
AbstractStandardUpgradeStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
upgrade(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
String acceptedProtocol,
WebSocketHandler wsHandler,
Map<String,Object> attributes)
Perform runtime specific steps to complete the upgrade.
|
protected abstract void |
upgradeInternal(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
String selectedProtocol,
javax.websocket.Endpoint endpoint) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedVersionsprotected final Log logger
public void upgrade(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
String acceptedProtocol,
WebSocketHandler wsHandler,
Map<String,Object> attributes)
throws HandshakeFailureException
RequestUpgradeStrategyupgrade in interface RequestUpgradeStrategyrequest - the current requestresponse - the current responseacceptedProtocol - the accepted sub-protocol, if anywsHandler - the handler for WebSocket messagesattributes - handshake context attributesHandshakeFailureException - 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.protected abstract void upgradeInternal(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
String selectedProtocol,
javax.websocket.Endpoint endpoint)
throws HandshakeFailureException
HandshakeFailureException