Class StompHandshakeInterceptor

java.lang.Object
com.bytedesk.core.socket.stomp.interceptor.StompHandshakeInterceptor
All Implemented Interfaces:
org.springframework.web.socket.server.HandshakeInterceptor

public class StompHandshakeInterceptor extends Object implements org.springframework.web.socket.server.HandshakeInterceptor
Author:
bytedesk.com on 2019/2/27
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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, Exception exception)
     
    boolean
    beforeHandshake(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, org.springframework.web.socket.WebSocketHandler wsHandler, Map<String,Object> attributes)
     

    Methods inherited from class java.lang.Object

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

    • StompHandshakeInterceptor

      public StompHandshakeInterceptor()
  • Method Details

    • 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, @Nullable Exception exception)
      Specified by:
      afterHandshake in interface org.springframework.web.socket.server.HandshakeInterceptor