public interface ToClientInterceptor
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
postHandle(org.springframework.web.socket.WebSocketSession session,
org.springframework.security.core.Authentication authentication,
org.springframework.messaging.simp.stomp.StompHeaderAccessor accessor,
Object payload,
org.springframework.web.socket.messaging.StompSubProtocolHandler handler)
后置处理
|
default boolean |
preHandle(org.springframework.web.socket.WebSocketSession session,
org.springframework.security.core.Authentication authentication,
org.springframework.messaging.simp.stomp.StompHeaderAccessor accessor,
Object payload,
org.springframework.web.socket.messaging.StompSubProtocolHandler handler)
前置处理
|
default boolean preHandle(org.springframework.web.socket.WebSocketSession session,
org.springframework.security.core.Authentication authentication,
org.springframework.messaging.simp.stomp.StompHeaderAccessor accessor,
Object payload,
org.springframework.web.socket.messaging.StompSubProtocolHandler handler)
session - websocket sessionauthentication - 认证信息accessor - websocket消息头解析器payload - websocket消息内容handler - stomp协议控制器InterceptableStompSubProtocolHandler.handleMessageToClient(WebSocketSession, Message)default void postHandle(org.springframework.web.socket.WebSocketSession session,
org.springframework.security.core.Authentication authentication,
org.springframework.messaging.simp.stomp.StompHeaderAccessor accessor,
Object payload,
org.springframework.web.socket.messaging.StompSubProtocolHandler handler)
session - websocket sessionauthentication - 认证信息accessor - websocket消息头解析器payload - websocket消息内容handler - stomp协议控制器InterceptableStompSubProtocolHandler.handleMessageToClient(WebSocketSession, Message)Copyright © 2019. All rights reserved.