public interface RequestUpgradeStrategy
| Modifier and Type | Method and Description |
|---|---|
String[] |
getSupportedVersions()
Return the supported WebSocket protocol versions.
|
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.
|
String[] getSupportedVersions()
void upgrade(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
String acceptedProtocol,
WebSocketHandler wsHandler,
Map<String,Object> attributes)
throws HandshakeFailureException
request - 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.