View Javadoc

1   package org.codehaus.xfire.handler;
2   
3   import org.codehaus.xfire.MessageContext;
4   import org.codehaus.xfire.fault.XFireFault;
5   
6   /***
7    * Reads in the message body using the service binding.
8    * 
9    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
10   */
11  public class ParseMessageHandler
12      extends AbstractHandler
13  {
14      public String getPhase()
15      {
16          return Phase.DISPATCH;
17      }
18  
19      public void invoke(MessageContext context)
20          throws XFireFault
21      {
22          context.getService().getBinding().readMessage(context.getInMessage(), context);
23      }
24  }