public class FaultableHandler extends BasicHandler
FaultableHandler is essentially a wrapper for any other
Handler which provides flexible fault handling semantics.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
entLog
The
Log used for enterprise-centric logging. |
protected static org.apache.commons.logging.Log |
log
The
Log used to log all events that would be of general
interest. |
protected Handler |
workHandler
The
Handler that will do the actual work of handeling the
fault. |
makeLockable, name, options| Constructor and Description |
|---|
FaultableHandler(Handler workHandler)
Create a new FaultHandler.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandleBlock(QName qname)
Indicate if this handler can process
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 |
onFault(MessageContext msgContext)
Some handler later on has faulted so we need to process the fault.
|
generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, initHashtable, setName, setOption, setOptionDefault, setOptions, setOptionsLockableprotected static org.apache.commons.logging.Log log
Log used to log all events that would be of general
interest.protected static org.apache.commons.logging.Log entLog
Log used for enterprise-centric logging.
The enterprise category is for stuff that an enterprise product might
want to track, but in a simple environment (like the AXIS build) would
be nothing more than a nuisance.protected Handler workHandler
Handler that will do the actual work of handeling the
fault.public FaultableHandler(Handler workHandler)
workHandler - the Handler we're going to wrap with Fault semantics.public void init()
BasicHandlerinit in interface Handlerinit in class BasicHandlerpublic void cleanup()
Handlercleanup in interface Handlercleanup in class BasicHandlerpublic void invoke(MessageContext msgContext) throws AxisFault
msgContext - the MessageContext to processAxisFault - if anything goes terminally wrongpublic void onFault(MessageContext msgContext)
onFault in interface HandleronFault in class BasicHandlermsgContext - the context to processpublic boolean canHandleBlock(QName qname)
Handlerqname.canHandleBlock in interface HandlercanHandleBlock in class BasicHandlerqname - the QName to checkHandler can handle qname,
false otherwiseCopyright © The Apache Software Foundation. All Rights Reserved.