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