Methods Summary |
---|
public void | deploy(WSDDDeployment registry)do a deploy and/or undeploy, depending on what is in the document.
If both trees are set, then undeploy follows deploy.
if (deployment != null) {
deployment.deployToRegistry(registry);
}
if (undeployment != null) {
undeployment.undeployFromRegistry(registry);
}
|
public org.w3c.dom.Document | getDOMDocument()get the deployment as a DOM.
Requires that the deployment member variable is not null.
StringWriter writer = new StringWriter();
SerializationContext context = new SerializationContext(writer);
context.setPretty(true);
try {
deployment.writeToContext(context);
} catch (Exception e) {
log.error(Messages.getMessage("exception00"), e);
}
try {
writer.close();
return XMLUtils.newDocument(new InputSource(new StringReader(writer.getBuffer().toString())));
} catch (Exception e) {
return null;
}
|
public WSDDDeployment | getDeployment()Get the deployment. If there is no deployment, create an empty one
if (deployment == null) {
deployment = new WSDDDeployment();
}
return deployment;
|
public void | setDocument(org.w3c.dom.Document document)Bind to a new document, setting the undeployment nodes if it is an undeployment,
the deployment tree if it is anything else.
this.doc = document;
Element docEl = doc.getDocumentElement();
if (ELEM_WSDD_UNDEPLOY.equals(docEl.getLocalName())) {
undeployment = new WSDDUndeployment(docEl);
} else {
deployment = new WSDDDeployment(docEl);
}
|
public void | writeToContext(org.apache.axis.encoding.SerializationContext context)write the deployment to the supplied serialization context.
getDeployment().writeToContext(context);
|