Class StompHandshakeInterceptor
java.lang.Object
com.bytedesk.core.socket.stomp.interceptor.StompHandshakeInterceptor
- All Implemented Interfaces:
org.springframework.web.socket.server.HandshakeInterceptor
public class StompHandshakeInterceptor
extends Object
implements org.springframework.web.socket.server.HandshakeInterceptor
- Author:
- bytedesk.com on 2019/2/27
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Constructor Details
-
StompHandshakeInterceptor
public StompHandshakeInterceptor()
-
-
Method Details
-
beforeHandshake
public boolean beforeHandshake(@NonNull org.springframework.http.server.ServerHttpRequest request, @NonNull org.springframework.http.server.ServerHttpResponse response, @NonNull org.springframework.web.socket.WebSocketHandler wsHandler, @NonNull Map<String, Object> attributes) throws Exception- Specified by:
beforeHandshake
in interfaceorg.springframework.web.socket.server.HandshakeInterceptor
- Throws:
Exception
-
afterHandshake
public void afterHandshake(@NonNull org.springframework.http.server.ServerHttpRequest request, @NonNull org.springframework.http.server.ServerHttpResponse response, @NonNull org.springframework.web.socket.WebSocketHandler wsHandler, @Nullable Exception exception) - Specified by:
afterHandshake
in interfaceorg.springframework.web.socket.server.HandshakeInterceptor
-