@Configuration public class ServerWebSocketInterceptor extends Object implements org.springframework.web.socket.server.HandshakeInterceptor
| Constructor and Description |
|---|
ServerWebSocketInterceptor(UserService userService,
NodeService nodeService,
UserBindWorkspaceService userBindWorkspaceService) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterHandshake(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
org.springframework.web.socket.WebSocketHandler wsHandler,
Exception exception) |
boolean |
beforeHandshake(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
org.springframework.web.socket.WebSocketHandler wsHandler,
Map<String,Object> attributes) |
public ServerWebSocketInterceptor(UserService userService, NodeService nodeService, UserBindWorkspaceService userBindWorkspaceService)
public boolean beforeHandshake(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
org.springframework.web.socket.WebSocketHandler wsHandler,
Map<String,Object> attributes)
throws Exception
beforeHandshake in interface org.springframework.web.socket.server.HandshakeInterceptorExceptionpublic void afterHandshake(org.springframework.http.server.ServerHttpRequest request,
org.springframework.http.server.ServerHttpResponse response,
org.springframework.web.socket.WebSocketHandler wsHandler,
Exception exception)
afterHandshake in interface org.springframework.web.socket.server.HandshakeInterceptorCopyright © 2017–2022. All rights reserved.