org.apache.axis
Class FaultableHandler
java.lang.Object
|
+--org.apache.axis.handlers.BasicHandler
|
+--org.apache.axis.FaultableHandler
- All Implemented Interfaces:
- Handler, java.io.Serializable
- public class FaultableHandler
- extends BasicHandler
A FaultableHandler
is essentially a wrapper for any other
Handler which provides flexible fault handling semantics.
- Author:
- Doug Davis (dug@us.ibm.com), Glen Daniels (gdaniels@macromedia.com)
- See Also:
- Serialized Form
Method Summary |
boolean |
canHandleBlock(QName qname)
Can this Handler process this QName? |
void |
cleanup()
Cleanup is called when the chain containing this Handler object
is done processing the chain. |
void |
init()
Stubbed-out methods. |
void |
invoke(MessageContext msgContext)
Invokes the specified handler. |
void |
undo(MessageContext msgContext)
Some handler later on has faulted so we need to undo our work. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
workHandler
protected Handler workHandler
faultHandlers
protected java.util.Hashtable faultHandlers
FaultableHandler
public FaultableHandler(Handler workHandler)
- Constructor
- Parameters:
workHandler
- the Handler we're going to wrap with Fault semantics.
init
public void init()
- Description copied from class:
BasicHandler
- Stubbed-out methods. Override in your child class to implement
any real behavior.
- Overrides:
init
in class BasicHandler
cleanup
public void cleanup()
- Description copied from interface:
Handler
- Cleanup is called when the chain containing this Handler object
is done processing the chain.
- Overrides:
cleanup
in class BasicHandler
invoke
public void invoke(MessageContext msgContext)
throws AxisFault
- Invokes the specified handler. If there's a fault the appropriate
key will be calculated and used to find the fault chain to be
invoked. This assumes that the workHandler has caught the exception
and already processed it's undo logic - as needed.
- Overrides:
invoke
in class BasicHandler
undo
public void undo(MessageContext msgContext)
- Some handler later on has faulted so we need to undo our work.
- Overrides:
undo
in class BasicHandler
canHandleBlock
public boolean canHandleBlock(QName qname)
- Description copied from interface:
Handler
- Can this Handler process this QName?
- Overrides:
canHandleBlock
in class BasicHandler
Copyright © 2001 Apache XML Project. All Rights Reserved.