public final class SessionRepositoryHandshakeInterceptor extends Object implements org.springframework.web.socket.server.HandshakeInterceptor
Session.getId() with the WebSocket Session attributes when the
handshake is performed. This is later used when intercepting messages to ensure the
ExpiringSession.getLastAccessedTime() is updated.| Constructor and Description |
|---|
SessionRepositoryHandshakeInterceptor() |
| 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 SessionRepositoryHandshakeInterceptor()
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 © 2015. All rights reserved.