Class HttpHandshakeInterceptor

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

    public class HttpHandshakeInterceptor
    extends java.lang.Object
    implements org.springframework.web.socket.server.HandshakeInterceptor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterHandshake​(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, org.springframework.web.socket.WebSocketHandler wsHandler, java.lang.Exception ex)  
      boolean beforeHandshake​(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, org.springframework.web.socket.WebSocketHandler wsHandler, java.util.Map attributes)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpHandshakeInterceptor

        public HttpHandshakeInterceptor()
    • Method Detail

      • beforeHandshake

        public boolean beforeHandshake​(org.springframework.http.server.ServerHttpRequest request,
                                       org.springframework.http.server.ServerHttpResponse response,
                                       org.springframework.web.socket.WebSocketHandler wsHandler,
                                       java.util.Map attributes)
                                throws java.lang.Exception
        Specified by:
        beforeHandshake in interface org.springframework.web.socket.server.HandshakeInterceptor
        Throws:
        java.lang.Exception
      • afterHandshake

        public void afterHandshake​(org.springframework.http.server.ServerHttpRequest request,
                                   org.springframework.http.server.ServerHttpResponse response,
                                   org.springframework.web.socket.WebSocketHandler wsHandler,
                                   java.lang.Exception ex)
        Specified by:
        afterHandshake in interface org.springframework.web.socket.server.HandshakeInterceptor