|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.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 String |
name
|
protected Hashtable |
options
|
Constructor Summary | |
BasicHandler()
|
Method Summary | |
boolean |
canHandleBlock(javax.xml.namespace.QName 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 msgContext)
Obtain WSDL information. |
Element |
getDeploymentData(Document doc)
This will return the root element of an XML doc that describes the deployment information about this handler. |
String |
getName()
Return the name (i.e. |
Object |
getOption(String name)
Returns the option corresponding to the 'name' given |
Hashtable |
getOptions()
Return the entire list of options |
List |
getUnderstoodHeaders()
Return a list of QNames which this Handler understands. |
void |
init()
Stubbed-out methods. |
protected void |
initHashtable()
|
abstract void |
invoke(MessageContext msgContext)
Must implement this in subclasses. |
void |
onFault(MessageContext msgContext)
Called when a subsequent handler throws a fault. |
void |
setName(String name)
Set the name (i.e. |
void |
setOption(String name,
Object value)
Set the given option (name/value) in this handler's bag of options |
boolean |
setOptionDefault(String name,
Object value)
Set a default value for the given option: if the option is not already set, then set it. |
void |
setOptions(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 Hashtable options
protected String name
Constructor Detail |
public BasicHandler()
Method Detail |
protected void setOptionsLockable(boolean makeLockable)
protected void initHashtable()
public void init()
public void cleanup()
Handler
public boolean canHandleBlock(javax.xml.namespace.QName qname)
Handler
canHandleBlock
in interface Handler
public void onFault(MessageContext msgContext)
Handler
public abstract void invoke(MessageContext msgContext) throws AxisFault
public void setOption(String name, Object value)
public boolean setOptionDefault(String name, Object value)
public Object getOption(String name)
public Hashtable getOptions()
getOptions
in interface Handler
public void setOptions(Hashtable opts)
Handler
setOptions
in interface Handler
public void setName(String name)
public String getName()
public Element getDeploymentData(Document doc)
Handler
getDeploymentData
in interface Handler
public void generateWSDL(MessageContext msgContext) throws AxisFault
Handler
generateWSDL
in interface Handler
AxisFault
public List getUnderstoodHeaders()
getUnderstoodHeaders
in interface Handler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |