Package org.springframework.integration.handler

Examples of org.springframework.integration.handler.AbstractReplyProducingMessageHandler


    // add a listener to this channel, otherwise there is not one defined
    // the reason we use a listener here is so we can assert truths on the
    // message and/or payload
    SubscribableChannel channel = (SubscribableChannel) incomingServerChannel;
    channel.subscribe(new AbstractReplyProducingMessageHandler() {

      @Override
      protected Object handleRequestMessage(Message<?> requestMessage) {
        byte[] payload = (byte[]) requestMessage.getPayload();
View Full Code Here


    // add a listener to this channel, otherwise there is not one defined
    // the reason we use a listener here is so we can assert truths on the
    // message and/or payload
    SubscribableChannel channel = (SubscribableChannel) incomingServerChannel;
    channel.subscribe(new AbstractReplyProducingMessageHandler(){

      @Override
      protected Object handleRequestMessage(Message<?> requestMessage) {
        CustomOrder payload = (CustomOrder) requestMessage.getPayload();
View Full Code Here

    // anyway....
    //1) lets send an outbound message so that our gateway has something to listen for


    MessageHandler inboundMessageHandler = new AbstractReplyProducingMessageHandler() {
      @Override
      protected Object handleRequestMessage(Message<?> requestMessage) {
         logger.debug("Processing incoming message for inbound-gw and produce a reply");
        Assert.assertEquals(requestMessage.getPayload(), smsRequest);
        count.incrementAndGet();
View Full Code Here

TOP

Related Classes of org.springframework.integration.handler.AbstractReplyProducingMessageHandler

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.