|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.axis.handlers.BasicHandler
BasicHandler
is a utility class which implements simple
property setting/getting behavior, and stubs out a lot of the Handler
methods. Extend this class to make writing your Handlers easier, and
then override what you need to.
Field Summary | |
protected boolean |
makeLockable
|
protected java.lang.String |
name
|
protected java.util.Hashtable |
options
|
Constructor Summary | |
BasicHandler()
|
Method Summary | |
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. |
void |
generateWSDL(MessageContext (src) msgContext)
Obtain WSDL information. |
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. |
java.lang.String |
getName()
Return the name (i.e. |
java.lang.Object |
getOption(java.lang.String name)
Returns the option corresponding to the 'name' given |
java.util.Hashtable |
getOptions()
Return the entire list of options |
java.util.List |
getUnderstoodHeaders()
Return a list of QNames which this Handler understands. |
void |
init()
Stubbed-out methods. |
protected void |
initHashtable()
|
abstract void |
invoke(MessageContext (src) msgContext)
Must implement this in subclasses. |
void |
onFault(MessageContext (src) msgContext)
Called when a subsequent handler throws a fault. |
void |
setName(java.lang.String name)
Set the name (i.e. |
void |
setOption(java.lang.String name,
java.lang.Object value)
Set the given option (name/value) in this handler's bag of options |
boolean |
setOptionDefault(java.lang.String name,
java.lang.Object value)
Set a default value for the given option: if the option is not already set, then set it. |
void |
setOptions(java.util.Hashtable opts)
Sets a whole list of options |
protected void |
setOptionsLockable(boolean makeLockable)
Should this Handler use a LockableHashtable for options? Default is 'false'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean makeLockable
protected java.util.Hashtable options
protected java.lang.String name
Constructor Detail |
public BasicHandler()
Method Detail |
protected void setOptionsLockable(boolean makeLockable)
protected void initHashtable()
public void init()
init
in interface Handler (src)
public void cleanup()
Handler (src)
cleanup
in interface Handler (src)
public boolean canHandleBlock(QName (src) qname)
Handler (src)
canHandleBlock
in interface Handler (src)
public void onFault(MessageContext (src) msgContext)
Handler (src)
onFault
in interface Handler (src)
public abstract void invoke(MessageContext (src) msgContext) throws AxisFault (src)
invoke
in interface Handler (src)
AxisFault (src)
public void setOption(java.lang.String name, java.lang.Object value)
setOption
in interface Handler (src)
public boolean setOptionDefault(java.lang.String name, java.lang.Object value)
public java.lang.Object getOption(java.lang.String name)
getOption
in interface Handler (src)
public java.util.Hashtable getOptions()
getOptions
in interface Handler (src)
public void setOptions(java.util.Hashtable opts)
Handler (src)
setOptions
in interface Handler (src)
public void setName(java.lang.String name)
setName
in interface Handler (src)
public java.lang.String getName()
getName
in interface Handler (src)
public org.w3c.dom.Element getDeploymentData(org.w3c.dom.Document doc)
Handler (src)
getDeploymentData
in interface Handler (src)
public void generateWSDL(MessageContext (src) msgContext) throws AxisFault (src)
Handler (src)
generateWSDL
in interface Handler (src)
AxisFault (src)
public java.util.List getUnderstoodHeaders()
getUnderstoodHeaders
in interface Handler (src)
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |