インターフェースの使用
org.springframework.messaging.support.ChannelInterceptor
パッケージ
説明
より高いレベルのメッセージングプロトコルを使用した WebSocket メッセージングの構成サポート。
Message
の実装と、MessageBuilder および MessageHeaderAccessor を実装して、メッセージおよびメッセージヘッダーの構築と操作、さまざまな MessageChannel
実装およびチャネルインターセプターサポートを提供します。org.springframework.messaging.simp.config 内の ChannelInterceptor 使用
修飾子と型メソッド説明ChannelRegistration.interceptors
(ChannelInterceptor... interceptors) このメッセージチャネルの特定のインターセプターを構成し、インターセプターのチャネルの現在のリストに追加します。org.springframework.messaging.support 内の ChannelInterceptor 使用
修飾子と型インターフェース説明interface
修飾子と型クラス説明class
preSend メソッドを介して渡されたメッセージのヘッダーに対してMessageHeaderAccessor.setImmutable()
を呼び出す、よりシンプルなインターセプター。修飾子と型メソッド説明AbstractMessageChannel.removeInterceptor
(int index) InterceptableChannel.removeInterceptor
(int index) 指定されたインデックスにあるインターセプターを削除します。修飾子と型メソッド説明AbstractMessageChannel.getInterceptors()
InterceptableChannel.getInterceptors()
設定されたインターセプターのリストを返します。修飾子と型メソッド説明void
AbstractMessageChannel.addInterceptor
(int index, ChannelInterceptor interceptor) void
AbstractMessageChannel.addInterceptor
(ChannelInterceptor interceptor) void
ExecutorSubscribableChannel.addInterceptor
(int index, ChannelInterceptor interceptor) void
ExecutorSubscribableChannel.addInterceptor
(ChannelInterceptor interceptor) void
InterceptableChannel.addInterceptor
(int index, ChannelInterceptor interceptor) 指定したインデックスにチャネルインターセプターを追加します。void
InterceptableChannel.addInterceptor
(ChannelInterceptor interceptor) リストの最後にチャネルインターセプターを追加します。boolean
AbstractMessageChannel.removeInterceptor
(ChannelInterceptor interceptor) boolean
InterceptableChannel.removeInterceptor
(ChannelInterceptor interceptor) 指定されたインターセプターを削除します。修飾子と型メソッド説明void
AbstractMessageChannel.setInterceptors
(ListSE<ChannelInterceptor> interceptors) void
ExecutorSubscribableChannel.setInterceptors
(ListSE<ChannelInterceptor> interceptors) void
InterceptableChannel.setInterceptors
(ListSE<ChannelInterceptor> interceptors) 既存のインターセプターをクリアするチャネルインターセプターのリストを設定します。