org.apache.axis
Class SimpleChain
- Chain, Handler, Serializable
A Simple Chain is a 'composite' Handler in that it aggregates a collection
of Handlers and also acts as a Handler which delegates its operations to
the collection.
A Simple Chain initially has no Handlers. Handlers may be added until the
chain is invoke()d after which Handlers may not be added (and any attempt
to do so will throw an exception).
- Doug Davis (dug@us.ibm.com)
- Glyn Normington (norm@uk.ibm.com)
canHandleBlock , cleanup , generateWSDL , getDeploymentData , getName , getOption , getOptions , getUnderstoodHeaders , init , initHashtable , onFault , setName , setOption , setOptionDefault , setOptions , setOptionsLockable |
handlers
protected Vector handlers
invoked
protected boolean invoked
generateWSDL
public void generateWSDL(MessageContext msgContext)
throws AxisFault
Iterate over the chain letting each handler have a crack at
contributing to a WSDL description.
- generateWSDL in interface Handler
- generateWSDL in interface BasicHandler
msgContext
- the MessageContext
to write the WSDL
out to
AxisFault
- if there was a problem writing the WSDL
invoke
public void invoke(MessageContext msgContext)
throws AxisFault
Iterate over the chain invoking each handler. If there's a fault
then call 'onFault' for each completed handler in reverse order, then
rethrow the exception.
- invoke in interface Handler
AxisFault
- if there was a fault with any of the handlers
onFault
public void onFault(MessageContext msgContext)
Notify the handlers in this chain because some handler
later on has faulted - in reverse order. If any handlers
have been added since we visited the chain, they will get
notified too!
- onFault in interface Handler
- onFault in interface BasicHandler
msgContext
- the context to process
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.