Uses of Interface
org.springframework.messaging.support.ChannelInterceptor
Packages that use ChannelInterceptor Package Description org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.messaging.support Provides implementations ofMessage
along with a MessageBuilder and MessageHeaderAccessor for building and working with messages and message headers, as well as variousMessageChannel
implementations and channel interceptor support.Uses of ChannelInterceptor in org.springframework.messaging.simp.config
Methods in org.springframework.messaging.simp.config that return types with arguments of type ChannelInterceptor Modifier and Type Method Description protected List<ChannelInterceptor>
ChannelRegistration. getInterceptors()
Methods in org.springframework.messaging.simp.config with parameters of type ChannelInterceptor Modifier and Type Method Description ChannelRegistration
ChannelRegistration. interceptors(ChannelInterceptor... interceptors)
Configure the given interceptors for this message channel, adding them to the channel's current list of interceptors.ChannelRegistration
ChannelRegistration. setInterceptors(ChannelInterceptor... interceptors)
Deprecated.as of 4.3.12, in favor ofChannelRegistration.interceptors(ChannelInterceptor...)
Uses of ChannelInterceptor in org.springframework.messaging.support
Subinterfaces of ChannelInterceptor in org.springframework.messaging.support Modifier and Type Interface Description interface
ExecutorChannelInterceptor
An extension ofChannelInterceptor
with callbacks to intercept the asynchronous sending of aMessage
to a specific subscriber through anExecutor
.Classes in org.springframework.messaging.support that implement ChannelInterceptor Modifier and Type Class Description class
ChannelInterceptorAdapter
Deprecated.as of 5.0.7ChannelInterceptor
has default methods (made possible by a Java 8 baseline) and can be implemented directly without the need for this no-op adapterclass
ImmutableMessageChannelInterceptor
A simpler interceptor that callsMessageHeaderAccessor.setImmutable()
on the headers of messages passed through the preSend method.Methods in org.springframework.messaging.support that return ChannelInterceptor Modifier and Type Method Description ChannelInterceptor
AbstractMessageChannel. removeInterceptor(int index)
ChannelInterceptor
InterceptableChannel. removeInterceptor(int index)
Remove the interceptor at the given index.Methods in org.springframework.messaging.support that return types with arguments of type ChannelInterceptor Modifier and Type Method Description List<ChannelInterceptor>
AbstractMessageChannel. getInterceptors()
List<ChannelInterceptor>
InterceptableChannel. getInterceptors()
Return the list of configured interceptors.Methods in org.springframework.messaging.support with parameters of type ChannelInterceptor Modifier and Type Method Description 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)
Add a channel interceptor at the specified index.void
InterceptableChannel. addInterceptor(ChannelInterceptor interceptor)
Add a channel interceptor to the end of the list.boolean
AbstractMessageChannel. removeInterceptor(ChannelInterceptor interceptor)
boolean
InterceptableChannel. removeInterceptor(ChannelInterceptor interceptor)
Remove the given interceptor.Method parameters in org.springframework.messaging.support with type arguments of type ChannelInterceptor Modifier and Type Method Description void
AbstractMessageChannel. setInterceptors(List<ChannelInterceptor> interceptors)
void
ExecutorSubscribableChannel. setInterceptors(List<ChannelInterceptor> interceptors)
void
InterceptableChannel. setInterceptors(List<ChannelInterceptor> interceptors)
Set the list of channel interceptors clearing any existing interceptors.