Package org.springframework.integration.channel.interceptor

Examples of org.springframework.integration.channel.interceptor.WireTap


            wireTapLogger.setShouldLogFullMessage(true);
            wireTapLogger.afterPropertiesSet();
            wireTapChannel.subscribe(wireTapLogger);

            List<ChannelInterceptor> ints = new ArrayList<ChannelInterceptor>();
            WireTap wt = new WireTap(wireTapChannel);
            ints.add(wt);
            outputChannel.setInterceptors(ints);
          }

          DirectChannel signChannel = (DirectChannel)channelResolver.resolveChannelName(platformType+"MessageSignerChannel");
View Full Code Here


  }

  private MessageChannel tapOutputChannel(String tapChannelName, ChannelInterceptorAware outputChannel) {
    DirectChannel tapChannel = new DirectChannel();
    tapChannel.setBeanName(tapChannelName + ".tap.bridge");
    outputChannel.addInterceptor(new WireTap(tapChannel));
    return tapChannel;
  }
View Full Code Here

    QueueChannel moduleInputChannel = new QueueChannel();
    QueueChannel module2InputChannel = new QueueChannel();
    QueueChannel module3InputChannel = new QueueChannel();
    messageBus.bindProducer("baz.0", moduleOutputChannel, null);
    messageBus.bindConsumer("baz.0", moduleInputChannel, null);
    moduleOutputChannel.addInterceptor(new WireTap(tapChannel));
    messageBus.bindPubSubProducer("tap:baz.http", tapChannel, null);
    // A new module is using the tap as an input channel
    messageBus.bindPubSubConsumer("tap:baz.http", module2InputChannel, null);
    // Another new module is using tap as an input channel
    messageBus.bindPubSubConsumer("tap:baz.http", module3InputChannel, null);
View Full Code Here

    messageBus.bindPubSubConsumer("tap:baz.http", module2InputChannel, null);

    // Then create the stream
    messageBus.bindProducer("baz.0", moduleOutputChannel, null);
    messageBus.bindConsumer("baz.0", moduleInputChannel, null);
    moduleOutputChannel.addInterceptor(new WireTap(tapChannel));
    messageBus.bindPubSubProducer("tap:baz.http", tapChannel, null);

    // Another new module is using tap as an input channel
    messageBus.bindPubSubConsumer("tap:baz.http", module3InputChannel, null);
    Message<?> message = MessageBuilder.withPayload("foo").setHeader(MessageHeaders.CONTENT_TYPE, "foo/bar").build();
View Full Code Here

TOP

Related Classes of org.springframework.integration.channel.interceptor.WireTap

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.