HandshakeInterceptor, org.springframework.web.socket.server.support.WebSocketHttpRequestHandler , org.springframework.web.socket.sockjs.SockJsService
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether the handshake negotiation was successful or not. In either case the response status, headers, and body will have been updated to reflect the result of the negotiationthe current request request, ServerHttpResponse the current response response, WebSocketHandler the handler to process WebSocket messages; see
wsHandler, Map<String, Object> PerConnectionWebSocketHandler for providing a handler with
per-connection lifecycle.the attributes from the HTTP handshake to associate with the WebSocket
session; the provided attributes are copied, the original map is not used. attributes)Initiate the handshake. |
| doHandshake | back to summary |
|---|---|
| public boolean doHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler, Map<String, Object> attributes) throws HandshakeFailureException Initiate the handshake.
| |