List of usage examples for org.springframework.messaging.support AbstractMessageChannel addInterceptor
@Override public void addInterceptor(ChannelInterceptor interceptor)
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 }