Search in sources :

Example 6 with ImmutableMessageChannelInterceptor

use of org.springframework.messaging.support.ImmutableMessageChannelInterceptor in project spring-framework by spring-projects.

the class AbstractMessageBrokerConfiguration method getClientInboundChannelRegistration.

protected final ChannelRegistration getClientInboundChannelRegistration() {
    if (this.clientInboundChannelRegistration == null) {
        ChannelRegistration registration = new ChannelRegistration();
        configureClientInboundChannel(registration);
        registration.setInterceptors(new ImmutableMessageChannelInterceptor());
        this.clientInboundChannelRegistration = registration;
    }
    return this.clientInboundChannelRegistration;
}
Also used : ImmutableMessageChannelInterceptor(org.springframework.messaging.support.ImmutableMessageChannelInterceptor)

Aggregations

ImmutableMessageChannelInterceptor (org.springframework.messaging.support.ImmutableMessageChannelInterceptor)6 ExecutorSubscribableChannel (org.springframework.messaging.support.ExecutorSubscribableChannel)3 Test (org.junit.Test)2 TextMessage (org.springframework.web.socket.TextMessage)2 Principal (java.security.Principal)1 AtomicReference (java.util.concurrent.atomic.AtomicReference)1 ConstructorArgumentValues (org.springframework.beans.factory.config.ConstructorArgumentValues)1 RuntimeBeanReference (org.springframework.beans.factory.config.RuntimeBeanReference)1 ManagedList (org.springframework.beans.factory.support.ManagedList)1 RootBeanDefinition (org.springframework.beans.factory.support.RootBeanDefinition)1 Bean (org.springframework.context.annotation.Bean)1 Message (org.springframework.messaging.Message)1 MessageChannel (org.springframework.messaging.MessageChannel)1 SimpMessageHeaderAccessor (org.springframework.messaging.simp.SimpMessageHeaderAccessor)1 TestPrincipal (org.springframework.messaging.simp.TestPrincipal)1 ChannelInterceptorAdapter (org.springframework.messaging.support.ChannelInterceptorAdapter)1 MessageHeaderAccessor (org.springframework.messaging.support.MessageHeaderAccessor)1 ThreadPoolTaskExecutor (org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor)1 BinaryMessage (org.springframework.web.socket.BinaryMessage)1 WebSocketMessage (org.springframework.web.socket.WebSocketMessage)1