Class HandshakeInterceptorChain
java.lang.Object
org.springframework.web.socket.server.support.HandshakeInterceptorChain
A helper class that assists with invoking a list of handshake interceptors.
- Since:
- 4.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionHandshakeInterceptorChain
(List<HandshakeInterceptor> interceptors, WebSocketHandler wsHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyAfterHandshake
(ServerHttpRequest request, ServerHttpResponse response, Exception failure) boolean
applyBeforeHandshake
(ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> attributes)
-
Constructor Details
-
HandshakeInterceptorChain
public HandshakeInterceptorChain(@Nullable List<HandshakeInterceptor> interceptors, WebSocketHandler wsHandler)
-
-
Method Details
-
applyBeforeHandshake
public boolean applyBeforeHandshake(ServerHttpRequest request, ServerHttpResponse response, Map<String, Object> attributes) throws Exception- Throws:
Exception
-
applyAfterHandshake
public void applyAfterHandshake(ServerHttpRequest request, ServerHttpResponse response, @Nullable Exception failure)
-