|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis.handlers.BasicHandler
org.apache.axis.SimpleChain
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).
| Field Summary | |
protected java.util.Vector |
handlers
|
protected boolean |
invoked
|
| Fields inherited from class org.apache.axis.handlers.BasicHandler |
makeLockable, name, options |
| Constructor Summary | |
SimpleChain()
|
|
| Method Summary | |
void |
addHandler(Handler handler)
Adds a handler to the end of the chain. |
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. |
boolean |
contains(Handler handler)
Discover if a handler is in this chain. |
void |
generateWSDL(MessageContext msgContext)
Iterate over the chain letting each handler have a crack at contributing to a WSDL description. |
org.w3c.dom.Element |
getDeploymentData(org.w3c.dom.Document doc)
This will return the root element of an XML doc that describes the deployment information about this handler. |
Handler[] |
getHandlers()
Get the list of handlers in the chain. |
void |
init()
Init is called when the chain containing this Handler object is instantiated. |
void |
invoke(MessageContext msgContext)
Iterate over the chain invoking each handler. |
void |
onFault(MessageContext msgContext)
Notify the handlers in this chain because some handler later on has faulted - in reverse order. |
| Methods inherited from class org.apache.axis.handlers.BasicHandler |
getName, getOption, getOptions, getUnderstoodHeaders, initHashtable, setName, setOption, setOptionDefault, setOptions, setOptionsLockable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.axis.Handler |
getName, getOption, getOptions, getUnderstoodHeaders, setName, setOption, setOptions |
| Field Detail |
protected java.util.Vector handlers
protected boolean invoked
| Constructor Detail |
public SimpleChain()
| Method Detail |
public void init()
Handler
init in interface Handlerinit in class BasicHandlerpublic void cleanup()
Handler
cleanup in interface Handlercleanup in class BasicHandler
public void invoke(MessageContext msgContext)
throws AxisFault
invoke in interface HandlermsgContext - the MessageContext to process with this
Handler.
AxisFault - if there was a fault with any of the handlers
public void generateWSDL(MessageContext msgContext)
throws AxisFault
generateWSDL in interface HandlergenerateWSDL in class BasicHandlermsgContext - the MessageContext to write the WSDL
out to
AxisFault - if there was a problem writing the WSDLpublic 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 BasicHandlerpublic void addHandler(Handler handler)
Chain
addHandler in interface Chainhandler - the Handler to be addedpublic boolean contains(Handler handler)
Chain
contains in interface Chainhandler - the Handler to check
true if it is in this chain, false
otherwisepublic Handler[] getHandlers()
Chain
getHandlers in interface ChainHandlers that have been addedpublic org.w3c.dom.Element getDeploymentData(org.w3c.dom.Document doc)
Handler
getDeploymentData in interface HandlergetDeploymentData in class BasicHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||