Package org.vrspace.server.config
Class WebSocketConfig.CustomSessionHandshakeInterceptor
java.lang.Object
org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor
org.vrspace.server.config.WebSocketConfig.CustomSessionHandshakeInterceptor
- All Implemented Interfaces:
org.springframework.web.socket.server.HandshakeInterceptor
- Enclosing class:
- WebSocketConfig
public class WebSocketConfig.CustomSessionHandshakeInterceptor
extends org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor
-
Field Summary
Fields inherited from class org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor
HTTP_SESSION_ID_ATTR_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
beforeHandshake
(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, org.springframework.web.socket.WebSocketHandler wsHandler, Map<String, Object> attributes) Methods inherited from class org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor
afterHandshake, getAttributeNames, isCopyAllAttributes, isCopyHttpSessionId, isCreateSession, setCopyAllAttributes, setCopyHttpSessionId, setCreateSession
-
Field Details
-
HTTP_SESSION_ATTR_NAME
- See Also:
-
-
Constructor Details
-
CustomSessionHandshakeInterceptor
public CustomSessionHandshakeInterceptor()
-
-
Method Details
-
beforeHandshake
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- Specified by:
beforeHandshake
in interfaceorg.springframework.web.socket.server.HandshakeInterceptor
- Overrides:
beforeHandshake
in classorg.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor
- Throws:
Exception
-