Methods Summary |
---|
public void | addChain(javax.xml.namespace.QName chain)
chains.add(chain);
|
public void | addHandler(javax.xml.namespace.QName handler)
handlers.add(handler);
|
public void | addService(javax.xml.namespace.QName service)
services.add(service);
|
public void | addTransport(javax.xml.namespace.QName transport)
transports.add(transport);
|
public void | deployTypeMapping(WSDDTypeMapping typeMapping)
typeMappings.add(typeMapping);
|
protected javax.xml.namespace.QName | getElementName()
return QNAME_UNDEPLOY;
|
private javax.xml.namespace.QName | getQName(org.w3c.dom.Element el)
String attr = el.getAttribute(ATTR_NAME);
if (attr == null || "".equals(attr))
throw new WSDDException(Messages.getMessage("badNameAttr00"));
return new QName("", attr);
|
public WSDDTypeMapping[] | getTypeMappings()
WSDDTypeMapping[] t = new WSDDTypeMapping[typeMappings.size()];
typeMappings.toArray(t);
return t;
|
public void | undeployFromRegistry(WSDDDeployment registry)
QName qname;
for (int n = 0; n < handlers.size(); n++) {
qname = (QName)handlers.get(n);
registry.undeployHandler(qname);
}
for (int n = 0; n < chains.size(); n++) {
qname = (QName)chains.get(n);
registry.undeployHandler(qname);
}
for (int n = 0; n < transports.size(); n++) {
qname = (QName)transports.get(n);
registry.undeployTransport(qname);
}
for (int n = 0; n < services.size(); n++) {
qname = (QName)services.get(n);
try {
String sname = qname.getLocalPart();
MessageContext messageContext = MessageContext.getCurrentContext();
if (messageContext != null) {
SOAPService service = messageContext.getAxisEngine()
.getService(sname);
if ( service != null ) service.clearSessions();
}
} catch(Exception exp) {
throw new ConfigurationException(exp);
}
registry.undeployService(qname);
}
|
private void | writeElement(org.apache.axis.encoding.SerializationContext context, javax.xml.namespace.QName elementQName, javax.xml.namespace.QName qname)
AttributesImpl attrs = new org.xml.sax.helpers.AttributesImpl();
attrs.addAttribute("", ATTR_NAME, ATTR_NAME, "CDATA",
context.qName2String(qname));
context.startElement(elementQName, attrs);
context.endElement();
|
public void | writeToContext(org.apache.axis.encoding.SerializationContext context)
context.registerPrefixForURI(NS_PREFIX_WSDD, URI_WSDD);
context.startElement(WSDDConstants.QNAME_UNDEPLOY, null);
Iterator i = handlers.iterator();
QName qname;
while (i.hasNext()) {
qname = (QName)i.next();
writeElement(context, QNAME_HANDLER, qname);
}
i = chains.iterator();
while (i.hasNext()) {
qname = (QName)i.next();
writeElement(context, QNAME_CHAIN, qname);
}
i = services.iterator();
while (i.hasNext()) {
qname = (QName)i.next();
writeElement(context, QNAME_SERVICE, qname);
}
i = transports.iterator();
while (i.hasNext()) {
qname = (QName)i.next();
writeElement(context, QNAME_TRANSPORT, qname);
}
i = typeMappings.iterator();
while (i.hasNext()) {
WSDDTypeMapping mapping = (WSDDTypeMapping)i.next();
mapping.writeToContext(context);
}
context.endElement();
|