org.springframework.web.socket.server.standard.StandardWebSocketUpgradeStrategy
| Modifier and Type | Method and Description |
|---|---|
| public List | getSupportedExtensions(ServerHttpRequest request)
Return the WebSocket protocol extensions supported by the underlying WebSocket server. |
| public String[] | |
| public void | upgrade(ServerHttpRequest
the current request request, ServerHttpResponse the current response response, String the selected sub-protocol, if any selectedProtocol, List<WebSocketExtension> the selected WebSocket protocol extensions selectedExtensions, Principal the user to associate with the WebSocket session user, WebSocketHandler the handler for WebSocket messages wsHandler, Map<String, Object> handshake request specific attributes to be set on the WebSocket
session via attributes)org. and
thus made available to the org.Perform runtime specific steps to complete the upgrade. |
| getSupportedExtensions | back to summary |
|---|---|
| public List Return the WebSocket protocol extensions supported by the underlying WebSocket server. | |
| getSupportedVersions | back to summary |
|---|---|
| public String[] getSupportedVersions() Return the supported WebSocket protocol versions. | |
| upgrade | back to summary |
|---|---|
| public void upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<WebSocketExtension> selectedExtensions, Principal user, WebSocketHandler wsHandler, Map<String, Object> attributes) throws HandshakeFailureException Perform runtime specific steps to complete the upgrade. Invoked after successful negotiation of the handshake request.
| |