View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.routing.requestreply;
8   
9   import org.mule.api.MuleEvent;
10  import org.mule.api.MuleException;
11  import org.mule.api.processor.MessageProcessor;
12  
13  /**
14   * Propagate any replyTo parameter from the event's message to the event itself.
15   */
16  public class ReplyToParameterProcessor implements MessageProcessor
17  {
18      public MuleEvent process(MuleEvent event) throws MuleException
19      {
20          event.captureReplyToDestination();
21          return event;
22      }
23  }