org.codehaus.xfire.handler
Class DefaultFaultHandler

java.lang.Object
  extended by org.codehaus.xfire.handler.AbstractHandler
      extended by org.codehaus.xfire.handler.DefaultFaultHandler
All Implemented Interfaces:
Handler

public class DefaultFaultHandler
extends AbstractHandler

Responsible for taking an exception, turning it into a Fault, then sending (and logging) that fault to the appropriate location.

Author:
Dan Diephouse

Field Summary
static String EXCEPTION
           
 
Fields inherited from interface org.codehaus.xfire.handler.Handler
ROLE
 
Constructor Summary
DefaultFaultHandler()
           
 
Method Summary
 void invoke(MessageContext context)
          Invoke a handler.
protected  void sendFault(XFireFault fault, MessageContext context)
           
protected  void sendToDeadLetter(XFireFault fault, MessageContext context)
           
 
Methods inherited from class org.codehaus.xfire.handler.AbstractHandler
after, before, getAfter, getBefore, getPhase, getRoles, getUnderstoodHeaders, handleFault, setAfter, setBefore, setPhase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXCEPTION

public static final String EXCEPTION
See Also:
Constant Field Values
Constructor Detail

DefaultFaultHandler

public DefaultFaultHandler()
Method Detail

invoke

public void invoke(MessageContext context)
            throws Exception
Description copied from interface: Handler
Invoke a handler. If a fault occurs it will be handled via the handleFault method.

Throws:
Exception

sendToDeadLetter

protected void sendToDeadLetter(XFireFault fault,
                                MessageContext context)

sendFault

protected void sendFault(XFireFault fault,
                         MessageContext context)


Copyright © 2004-2013. All Rights Reserved.