org.apache.axis
Class FaultableHandler
- Handler, Serializable
public class FaultableHandler
A FaultableHandler
is essentially a wrapper for any other
Handler which provides flexible fault handling semantics.
- Doug Davis (dug@us.ibm.com)
- Glen Daniels (gdaniels@apache.org)
protected static Log | entLog - The
Log used for enterprise-centric logging.
|
protected static 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.
|
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.
|
canHandleBlock , cleanup , generateWSDL , getDeploymentData , getName , getOption , getOptions , getUnderstoodHeaders , init , initHashtable , onFault , setName , setOption , setOptionDefault , setOptions , setOptionsLockable |
entLog
protected static Log entLog
The 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.
log
protected static Log log
The Log
used to log all events that would be of general
interest.
workHandler
protected Handler workHandler
The Handler
that will do the actual work of handeling the
fault.
FaultableHandler
public FaultableHandler(Handler workHandler)
Create a new FaultHandler.
workHandler
- the Handler we're going to wrap with Fault semantics.
canHandleBlock
public boolean canHandleBlock(QName qname)
Indicate if this handler can process qname
.
- canHandleBlock in interface Handler
- canHandleBlock in interface BasicHandler
qname
- the QName
to check
- true if this
Handler
can handle qname
,
false otherwise
cleanup
public void cleanup()
Cleanup is called when the chain containing this Handler object
is done processing the chain.
- cleanup in interface Handler
- cleanup in interface BasicHandler
init
public void init()
Stubbed-out methods. Override in your child class to implement
any real behavior. Note that there is NOT a stub for invoke(), since
we require any Handler derivative to implement that.
- init in interface Handler
- init in interface 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 done its fault processing - as needed.
- invoke in interface Handler
msgContext
- the MessageContext
to process
AxisFault
- if anything goes terminally wrong
onFault
public void onFault(MessageContext msgContext)
Some handler later on has faulted so we need to process the fault.
- onFault in interface Handler
- onFault in interface BasicHandler
msgContext
- the context to process
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.