Methods Summary |
---|
public boolean | canHandleBlock(javax.xml.namespace.QName qname)
return false;
|
public void | cleanup()
|
public void | generateWSDL(org.apache.axis.MessageContext msgContext)
|
public org.w3c.dom.Element | getDeploymentData(org.w3c.dom.Document doc)
log.debug("Enter: BasicHandler::getDeploymentData");
Element root = doc.createElementNS("", "handler");
root.setAttribute( "class", this.getClass().getName() );
options = this.getOptions();
if ( options != null ) {
Enumeration e = options.keys();
while ( e.hasMoreElements() ) {
String k = (String) e.nextElement();
Object v = options.get(k);
Element e1 = doc.createElementNS("", "option" );
e1.setAttribute( "name", k );
e1.setAttribute( "value", v.toString() );
root.appendChild( e1 );
}
}
log.debug("Exit: BasicHandler::getDeploymentData");
return( root );
|
public java.lang.String | getName()Return the name (i.e. registry key) for this Handler
return name;
|
public java.lang.Object | getOption(java.lang.String name)Returns the option corresponding to the 'name' given
if ( options == null ) return( null );
return( options.get(name) );
|
public java.util.Hashtable | getOptions()Return the entire list of options
return( options );
|
public java.util.List | getUnderstoodHeaders()Return a list of QNames which this Handler understands. By returning
a particular QName here, we are committing to fulfilling any contracts
defined in the specification of the SOAP header with that QName.
return null;
|
public void | init()Stubbed-out methods. Override in your child class to implement
any real behavior. Note that there is NOT a stub for invoke(), since
we require any Handler derivative to implement that.
|
protected void | initHashtable()
if (makeLockable) {
options = new LockableHashtable();
} else {
options = new Hashtable();
}
|
public void | onFault(org.apache.axis.MessageContext msgContext)
|
public void | setName(java.lang.String name)Set the name (i.e. registry key) of this Handler
this.name = name;
|
public void | setOption(java.lang.String name, java.lang.Object value)Set the given option (name/value) in this handler's bag of options
if ( options == null ) initHashtable();
options.put( name, value );
|
public 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.
if the option is already set, then do not set it.
If this is called multiple times, the first with a non-null value
if 'value' will set the default, remaining calls will be ignored.
Returns true if value set (by this call), otherwise false;
boolean val = (options == null || options.get(name) == null) && value != null;
if (val) {
setOption(name, value);
}
return val;
|
public void | setOptions(java.util.Hashtable opts)
options = opts;
|
protected void | setOptionsLockable(boolean makeLockable)Should this Handler use a LockableHashtable for options?
Default is 'false'.
this.makeLockable = makeLockable;
|