|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.axis.handlers.BasicHandler (src)
org.jboss.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.jboss.axis.handlers.BasicHandler (src) |
makeLockable, name, options |
| Constructor Summary | |
SimpleChain()
|
|
| Method Summary | |
void |
addHandler(Handler (src) handler)
Adds a handler to the end of the chain. |
boolean |
canHandleBlock(QName (src) qname)
Can this Handler process this QName? |
void |
cleanup()
Cleanup is called when the chain containing this Handler object is done processing the chain. |
boolean |
contains(Handler (src) handler)
Is this handler in the chain? |
void |
generateWSDL(MessageContext (src) 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 (src) [] |
getHandlers()
Get the list of handlers in the chain - is Handler[] the right form? |
void |
init()
Init is called when the chain containing this Handler object is instantiated. |
void |
invoke(MessageContext (src) msgContext)
Iterate over the chain invoking each handler. |
void |
onFault(MessageContext (src) msgContext)
Notify the handlers in this chain because some handler later on has faulted - in reverse order. |
| Methods inherited from class org.jboss.axis.handlers.BasicHandler (src) |
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.jboss.axis.Handler (src) |
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 (src)
init in interface Handler (src) init in class BasicHandler (src) public void cleanup()
Handler (src)
cleanup in interface Handler (src) cleanup in class BasicHandler (src)
public void invoke(MessageContext (src) msgContext)
throws AxisFault (src)
invoke in interface Handler (src) invoke in class BasicHandler (src) AxisFault (src)
public void generateWSDL(MessageContext (src) msgContext)
throws AxisFault (src)
generateWSDL in interface Handler (src) generateWSDL in class BasicHandler (src) AxisFault (src) public void onFault(MessageContext (src) msgContext)
onFault in interface Handler (src) onFault in class BasicHandler (src) public boolean canHandleBlock(QName (src) qname)
Handler (src)
canHandleBlock in interface Handler (src) canHandleBlock in class BasicHandler (src) public void addHandler(Handler (src) handler)
Chain (src)
addHandler in interface Chain (src) public boolean contains(Handler (src) handler)
Chain (src)
contains in interface Chain (src) public Handler (src) [] getHandlers()
Chain (src)
getHandlers in interface Chain (src) public org.w3c.dom.Element getDeploymentData(org.w3c.dom.Document doc)
Handler (src)
getDeploymentData in interface Handler (src) getDeploymentData in class BasicHandler (src)
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||