Package org.springframework.messaging.support

Examples of org.springframework.messaging.support.ImmutableMessageChannelInterceptor


      public Message<?> preSend(Message<?> message, MessageChannel channel) {
        mutable.set(MessageHeaderAccessor.getAccessor(message, MessageHeaderAccessor.class).isMutable());
        return message;
      }
    });
    channel.addInterceptor(new ImmutableMessageChannelInterceptor());

    StompSubProtocolHandler handler = new StompSubProtocolHandler();
    handler.afterSessionStarted(this.session, channel);

    TextMessage message = StompTextMessageBuilder.create(StompCommand.CONNECT).build();
View Full Code Here


    ManagedList<? super Object> interceptors = new ManagedList<Object>();
    if (element != null) {
      Element interceptorsElement = DomUtils.getChildElementByTagName(element, "interceptors");
      interceptors.addAll(WebSocketNamespaceUtils.parseBeanSubElements(interceptorsElement, context));
    }
    interceptors.add(new ImmutableMessageChannelInterceptor());
    channelDef.getPropertyValues().add("interceptors", interceptors);

    registerBeanDefByName(name, channelDef, context, source);
    return new RuntimeBeanReference(name);
  }
View Full Code Here

  protected final ChannelRegistration getClientInboundChannelRegistration() {
    if (this.clientInboundChannelRegistration == null) {
      ChannelRegistration registration = new ChannelRegistration();
      configureClientInboundChannel(registration);
      registration.setInterceptors(new ImmutableMessageChannelInterceptor());
      this.clientInboundChannelRegistration = registration;
    }
    return this.clientInboundChannelRegistration;
  }
View Full Code Here

  protected final ChannelRegistration getClientOutboundChannelRegistration() {
    if (this.clientOutboundChannelRegistration == null) {
      ChannelRegistration registration = new ChannelRegistration();
      configureClientOutboundChannel(registration);
      registration.setInterceptors(new ImmutableMessageChannelInterceptor());
      this.clientOutboundChannelRegistration = registration;
    }
    return this.clientOutboundChannelRegistration;
  }
View Full Code Here

  @Bean
  public AbstractSubscribableChannel brokerChannel() {
    ChannelRegistration reg = getBrokerRegistry().getBrokerChannelRegistration();
    ExecutorSubscribableChannel channel = reg.hasTaskExecutor() ?
        new ExecutorSubscribableChannel(brokerChannelExecutor()) : new ExecutorSubscribableChannel();
    reg.setInterceptors(new ImmutableMessageChannelInterceptor());
    channel.setInterceptors(reg.getInterceptors());
    return channel;
  }
View Full Code Here

TOP

Related Classes of org.springframework.messaging.support.ImmutableMessageChannelInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.