Top Description Methods
org.springframework.messaging.support

public Interface InterceptableChannel

Known Direct Implementers
org.springframework.messaging.support.AbstractMessageChannel
Imports
java.util.List

A MessageChannel that maintains a list ChannelInterceptors and allows interception of message sending.
Author
Rossen Stoyanchev
Since
4.1

Method Summary

Modifier and TypeMethod and Description
public void
addInterceptor(ChannelInterceptor interceptor)

Add a channel interceptor to the end of the list.

public void
addInterceptor(int index, ChannelInterceptor interceptor)

Add a channel interceptor at the specified index.

public List<ChannelInterceptor>
getInterceptors()

Return the list of configured interceptors.

public boolean
removeInterceptor(ChannelInterceptor interceptor)

Remove the given interceptor.

public ChannelInterceptor
removeInterceptor(int index)

Remove the interceptor at the given index.

public void
setInterceptors(List<ChannelInterceptor> interceptors)

Set the list of channel interceptors clearing any existing interceptors.

Method Detail

addInterceptorback to summary
public void addInterceptor(ChannelInterceptor interceptor)

Add a channel interceptor to the end of the list.

addInterceptorback to summary
public void addInterceptor(int index, ChannelInterceptor interceptor)

Add a channel interceptor at the specified index.

getInterceptorsback to summary
public List<ChannelInterceptor> getInterceptors()

Return the list of configured interceptors.

removeInterceptorback to summary
public boolean removeInterceptor(ChannelInterceptor interceptor)

Remove the given interceptor.

removeInterceptorback to summary
public ChannelInterceptor removeInterceptor(int index)

Remove the interceptor at the given index.

setInterceptorsback to summary
public void setInterceptors(List<ChannelInterceptor> interceptors)

Set the list of channel interceptors clearing any existing interceptors.