public interface FromClientInterceptor
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
postHandle(org.springframework.web.socket.WebSocketSession session,
org.springframework.security.core.Authentication authentication,
MessageFromClient message,
org.springframework.messaging.MessageChannel outputChannel,
org.springframework.web.socket.messaging.StompSubProtocolHandler handler)
后置处理
|
default boolean |
preHandle(org.springframework.web.socket.WebSocketSession session,
org.springframework.security.core.Authentication authentication,
MessageFromClient message,
org.springframework.messaging.MessageChannel outputChannel,
org.springframework.web.socket.messaging.StompSubProtocolHandler handler)
前置处理
|
default boolean preHandle(org.springframework.web.socket.WebSocketSession session,
org.springframework.security.core.Authentication authentication,
MessageFromClient message,
org.springframework.messaging.MessageChannel outputChannel,
org.springframework.web.socket.messaging.StompSubProtocolHandler handler)
session - websocket sessionauthentication - 认证信息message - websocket消息outputChannel - websocket消息通道handler - stomp协议控制器InterceptableStompSubProtocolHandler.handleMessageFromClient(WebSocketSession, WebSocketMessage, MessageChannel)default void postHandle(org.springframework.web.socket.WebSocketSession session,
org.springframework.security.core.Authentication authentication,
MessageFromClient message,
org.springframework.messaging.MessageChannel outputChannel,
org.springframework.web.socket.messaging.StompSubProtocolHandler handler)
session - websocket sessionauthentication - 认证信息message - websocket消息outputChannel - websocket消息通道handler - stomp协议控制器InterceptableStompSubProtocolHandler.handleMessageFromClient(WebSocketSession, WebSocketMessage, MessageChannel)Copyright © 2019. All rights reserved.