Class ExtractURITemplateVariablesToAttributesInterceptor
- java.lang.Object
-
- io.dialob.questionnaire.service.sockjs.ExtractURITemplateVariablesToAttributesInterceptor
-
- All Implemented Interfaces:
org.springframework.web.socket.server.HandshakeInterceptor
public class ExtractURITemplateVariablesToAttributesInterceptor extends Object implements org.springframework.web.socket.server.HandshakeInterceptor
-
-
Constructor Summary
Constructors Constructor Description ExtractURITemplateVariablesToAttributesInterceptor(String... attributesToExtract)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterHandshake(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, org.springframework.web.socket.WebSocketHandler wsHandler, Exception exception)booleanbeforeHandshake(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, org.springframework.web.socket.WebSocketHandler wsHandler, Map<String,Object> attributes)
-
-
-
Constructor Detail
-
ExtractURITemplateVariablesToAttributesInterceptor
public ExtractURITemplateVariablesToAttributesInterceptor(String... attributesToExtract)
-
-
Method Detail
-
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:
beforeHandshakein 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, Exception exception)- Specified by:
afterHandshakein interfaceorg.springframework.web.socket.server.HandshakeInterceptor
-
-