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