public class SimpleChain extends BasicHandler implements Chain
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).
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
handlers |
protected boolean |
invoked |
makeLockable, name, options| Constructor and Description |
|---|
SimpleChain() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Element |
getDeploymentData(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()
Stubbed-out methods.
|
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.
|
getName, getOption, getOptions, getUnderstoodHeaders, initHashtable, setName, setOption, setOptionDefault, setOptions, setOptionsLockableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getOption, getOptions, getUnderstoodHeaders, setName, setOption, setOptionsprotected Vector handlers
protected boolean invoked
public void init()
BasicHandlerinit in interface Handlerinit in class BasicHandlerpublic void cleanup()
Handlercleanup in interface Handlercleanup in class BasicHandlerpublic void invoke(MessageContext msgContext) throws AxisFault
public void generateWSDL(MessageContext msgContext) throws AxisFault
generateWSDL in interface HandlergenerateWSDL in class BasicHandlermsgContext - the MessageContext to write the WSDL
out toAxisFault - 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 BasicHandlerqname - the QName to checkHandler can handle qname,
false otherwisepublic void addHandler(Handler handler)
ChainaddHandler in interface Chainhandler - the Handler to be addedpublic boolean contains(Handler handler)
Chainpublic Handler[] getHandlers()
ChaingetHandlers in interface ChainHandlers that have been addedpublic Element getDeploymentData(Document doc)
HandlergetDeploymentData in interface HandlergetDeploymentData in class BasicHandlerdoc - a Document within which to build the deployment
dataCopyright © The Apache Software Foundation. All Rights Reserved.