Class ExtractURITemplateVariablesToAttributesInterceptor

  • All Implemented Interfaces:
    org.springframework.web.socket.server.HandshakeInterceptor

    public class ExtractURITemplateVariablesToAttributesInterceptor
    extends Object
    implements org.springframework.web.socket.server.HandshakeInterceptor
    • 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:
        beforeHandshake in interface org.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:
        afterHandshake in interface org.springframework.web.socket.server.HandshakeInterceptor