View Javadoc

1   package org.codehaus.xfire.exchange;
2   
3   import org.codehaus.xfire.MessageContext;
4   import org.codehaus.xfire.transport.Channel;
5   
6   /***
7    * An in only MEP. If a fault occurs, it is not sent anywhere, but it
8    * is logged.
9    *  
10   * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
11   */
12  public class InExchange
13      extends AbstractMessageExchange
14  {
15      public InExchange(MessageContext context)
16      {
17          super(context);
18  
19          if (context.getExchange() != null)
20          {
21              setInMessage(context.getInMessage());
22          }
23          
24          context.setExchange(this);
25      }
26  
27      public Channel getInChannel()
28      {
29          return getContext().getInMessage().getChannel();
30      }
31  
32      public boolean hasInMessage()
33      {
34          return true;
35      }
36  }