public interface RequestUpgradeStrategy
HandshakeHandler implementations.| Modifier and Type | Method and Description |
|---|---|
String[] |
getSupportedVersions()
Return the supported WebSocket protocol versions.
|
void |
upgrade(ServerHttpRequest request,
ServerHttpResponse response,
String selectedProtocol,
WebSocketHandler webSocketHandler)
Perform runtime specific steps to complete the upgrade.
|
String[] getSupportedVersions()
void upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, WebSocketHandler webSocketHandler) throws IOException, HandshakeFailureException
webSocketHandler - 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.IOException