1   package org.codehaus.xfire.handler;
2   
3   import javax.xml.stream.XMLStreamReader;
4   import org.codehaus.xfire.MessageContext;
5   
6   /***
7    * A handler which echoes the SOAP Body back.
8    * 
9    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
10   * @since Feb 18, 2004
11   */
12  public class BadHandler
13      extends AbstractHandler
14  {
15      /***
16       * @see org.codehaus.xfire.handler.Handler#invoke(org.codehaus.xfire.MessageContext, javax.xml.stream.XMLStreamReader)
17       */
18      public void invoke( MessageContext context, XMLStreamReader parser ) 
19          throws Exception
20      {
21          throw new Exception("Bad handler!");
22      }
23  }