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
(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, Exception failure) boolean
applyBeforeHandshake
(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, Map<String, Object> attributes)
-
Constructor Details
-
HandshakeInterceptorChain
public HandshakeInterceptorChain(@Nullable List<HandshakeInterceptor> interceptors, WebSocketHandler wsHandler)
-
-
Method Details
-
applyBeforeHandshake
public boolean applyBeforeHandshake(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, Map<String, Object> attributes) throws Exception- Throws:
Exception
-
applyAfterHandshake
public void applyAfterHandshake(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, @Nullable Exception failure)
-