Methods Summary |
---|
public void | addHandler(WSDDHandler handler)Add a Handler to the chain (at the end)
handlers.add(handler);
|
public void | deployToRegistry(WSDDDeployment registry)
if (getQName() != null)
registry.addHandler(this);
for (int n = 0; n < handlers.size(); n++) {
WSDDHandler handler = (WSDDHandler)handlers.get(n);
if (handler.getQName() != null)
handler.deployToRegistry(registry);
}
|
protected javax.xml.namespace.QName | getElementName()
return WSDDConstants.QNAME_CHAIN;
|
public java.util.Vector | getHandlers()Obtain our handler list
return handlers;
|
public org.apache.axis.Handler | makeNewInstance(org.apache.axis.EngineConfiguration registry)Creates a new instance of this Chain
Chain c = new org.apache.axis.SimpleChain();
for (int n = 0; n < handlers.size(); n++) {
WSDDHandler handler = (WSDDHandler)handlers.get(n);
Handler h = handler.getInstance(registry);
if ( h != null )
c.addHandler(h);
else
throw new ConfigurationException("Can't find handler name:'" +
handler.getQName() + "' type:'"+
handler.getType() +
"' in the registry");
}
return c;
|
public void | removeHandler(WSDDHandler victim)Remove a Handler from the chain
handlers.remove(victim);
|
public void | writeToContext(org.apache.axis.encoding.SerializationContext context)Write this element out to a SerializationContext
AttributesImpl attrs = new AttributesImpl();
QName name = getQName();
if (name != null) {
attrs.addAttribute("", ATTR_NAME, ATTR_NAME,
"CDATA", context.qName2String(name));
}
if (getType() != null) {
attrs.addAttribute("", ATTR_TYPE, ATTR_TYPE,
"CDATA", context.qName2String(getType()));
}
context.startElement(getElementName(), attrs);
for (int n = 0; n < handlers.size(); n++) {
WSDDHandler handler = (WSDDHandler)handlers.get(n);
handler.writeToContext(context);
}
context.endElement();
|