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, setOptionsLockable
protected 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()
BasicHandler
init
in interface Handler
init
in class BasicHandler
public void cleanup()
Handler
cleanup
in interface Handler
cleanup
in class BasicHandler
public void invoke(MessageContext msgContext) throws AxisFault
msgContext
- the MessageContext
to processAxisFault
- if anything goes terminally wrongpublic void onFault(MessageContext msgContext)
onFault
in interface Handler
onFault
in class BasicHandler
msgContext
- the context to processpublic boolean canHandleBlock(QName qname)
Handler
qname
.canHandleBlock
in interface Handler
canHandleBlock
in class BasicHandler
qname
- the QName
to checkHandler
can handle qname,
false otherwise
Copyright © The Apache Software Foundation. All Rights Reserved.