1 package org.codehaus.xfire.handler;
2
3 import org.codehaus.xfire.MessageContext;
4 import org.codehaus.xfire.fault.XFireFault;
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 implements EndpointHandler
15 {
16 /***
17 * @see org.codehaus.xfire.handler.Handler#invoke(org.codehaus.xfire.MessageContext)
18 */
19 public void invoke( MessageContext context )
20 throws Exception
21 {
22 throw new Exception("Bad handler!");
23 }
24
25 /***
26 * @see org.codehaus.xfire.handler.EndpointHandler#writeResponse(org.codehaus.xfire.MessageContext)
27 * @param context
28 * @throws XFireFault
29 */
30 public void writeResponse(MessageContext context)
31 throws XFireFault
32 {
33 }
34 }