Example usage for org.springframework.messaging.support AbstractMessageChannel addInterceptor

List of usage examples for org.springframework.messaging.support AbstractMessageChannel addInterceptor

Introduction

In this page you can find the example usage for org.springframework.messaging.support AbstractMessageChannel addInterceptor.

Prototype

@Override
    public void addInterceptor(ChannelInterceptor interceptor) 

Source Link

Usage

From source file:ch.rasc.wampspring.session.AbstractSessionWampConfigurer.java

@Override
public void configureClientInboundChannel(AbstractMessageChannel channel) {
    channel.addInterceptor(new SessionRepositoryMessageInterceptor<>(this.sessionRepository));
}

From source file:ch.rasc.wampspring.security.AbstractSecurityWampConfigurer.java

@Override
public void configureClientInboundChannel(AbstractMessageChannel channel) {
    ChannelSecurityInterceptor inboundChannelSecurity = inboundChannelSecurity();
    if (this.inboundRegistry.containsMapping()) {
        channel.addInterceptor(securityContextChannelInterceptor());
        channel.addInterceptor(inboundChannelSecurity);
    }//from w  w  w  .ja  v  a  2 s .c o  m
}