org.apache.axis.deployment.wsdd

Class WSDDDocument

public class WSDDDocument extends WSDDConstants

represents a WSDD Document (this is the top level object in this object model) Only one of deployment and undeployment should be valid.
Field Summary
protected static Loglog
Constructor Summary
WSDDDocument()
empty constructor
WSDDDocument(Document document)
create and bind to a document
WSDDDocument(Element e)
bind to a sub-element in a document.
Method Summary
voiddeploy(WSDDDeployment registry)
do a deploy and/or undeploy, depending on what is in the document.
WSDDDeploymentgetDeployment()
Get the deployment.
DocumentgetDOMDocument()
get the deployment as a DOM.
voidsetDocument(Document document)
Bind to a new document, setting the undeployment nodes if it is an undeployment, the deployment tree if it is anything else.
voidwriteToContext(SerializationContext context)
write the deployment to the supplied serialization context.

Field Detail

log

protected static Log log

Constructor Detail

WSDDDocument

public WSDDDocument()
empty constructor

WSDDDocument

public WSDDDocument(Document document)
create and bind to a document

Parameters: document (Document) XXX

WSDDDocument

public WSDDDocument(Element e)
bind to a sub-element in a document.

Parameters: e (Element) XXX

Method Detail

deploy

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.

Parameters: registry

Throws: ConfigurationException

getDeployment

public WSDDDeployment getDeployment()
Get the deployment. If there is no deployment, create an empty one

Returns: the deployment document

getDOMDocument

public Document getDOMDocument()
get the deployment as a DOM. Requires that the deployment member variable is not null.

Returns:

Throws: ConfigurationException

setDocument

public void setDocument(Document document)
Bind to a new document, setting the undeployment nodes if it is an undeployment, the deployment tree if it is anything else.

Parameters: document XXX

writeToContext

public void writeToContext(SerializationContext context)
write the deployment to the supplied serialization context.

Parameters: context

Throws: IOException

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.