org.apache.axis.deployment.wsdd

Class WSDDDeployment

public class WSDDDeployment extends WSDDElement implements WSDDTypeMappingContainer, WSDDEngineConfiguration

WSDD deployment element

Author: James Snell Glen Daniels (gdaniels@apache.org)

Field Summary
protected static Loglog
Constructor Summary
WSDDDeployment()
Default constructor
WSDDDeployment(Element e)
Create an element in WSDD that wraps an extant DOM element
Method Summary
protected voidaddHandler(WSDDHandler handler)
protected voidaddService(WSDDService service)
protected voidaddTransport(WSDDTransport transport)
voidconfigureEngine(AxisEngine engine)
voiddeployHandler(WSDDHandler handler)
Put a WSDDHandler into this deployment, replacing any other WSDDHandler which might already be present with the same QName.
voiddeployService(WSDDService service)
Put a WSDDService into this deployment, replacing any other WSDDService which might already be present with the same QName.
voiddeployToRegistry(WSDDDeployment target)
voiddeployTransport(WSDDTransport transport)
Put a WSDDTransport into this deployment, replacing any other WSDDTransport which might already be present with the same QName.
voiddeployTypeMapping(WSDDTypeMapping typeMapping)
IteratorgetDeployedServices()
Get an enumeration of the services deployed to this engine
WSDDDeploymentgetDeployment()
protected QNamegetElementName()
AxisEnginegetEngine()
WSDDGlobalConfigurationgetGlobalConfiguration()
Get our global configuration
HashtablegetGlobalOptions()
HandlergetGlobalRequest()
HandlergetGlobalResponse()
HandlergetHandler(QName name)
Return an instance of the named handler.
WSDDHandler[]getHandlers()
ListgetRoles()
SOAPServicegetService(QName name)
Retrieve an instance of the named service.
SOAPServicegetServiceByNamespaceURI(String namespace)
WSDDService[]getServices()
Return an array of the services in this deployment
HandlergetTransport(QName name)
Retrieve an instance of the named transport.
WSDDTransport[]getTransports()
TypeMappinggetTypeMapping(String encodingStyle)
TypeMappingRegistrygetTypeMappingRegistry()
WSDDTypeMapping[]getTypeMappings()
WSDDHandlergetWSDDHandler(QName qname)
WSDDServicegetWSDDService(QName qname)
Return the WSDD description for a given named service
WSDDTransportgetWSDDTransport(QName qname)
voidregisterNamespaceForService(String namespace, WSDDService service)
Register a particular namepsace which maps to a given WSDDService.
voidremoveNamespaceMapping(String namespace)
Remove a namespace -> WSDDService mapping.
voidsetGlobalConfiguration(WSDDGlobalConfiguration globalConfig)
voidundeployHandler(QName qname)
Remove a named handler
voidundeployService(QName qname)
Remove a named service
voidundeployTransport(QName qname)
Remove a named transport
voidwriteEngineConfig(AxisEngine engine)
voidwriteToContext(SerializationContext context)

Field Detail

log

protected static Log log

Constructor Detail

WSDDDeployment

public WSDDDeployment()
Default constructor

WSDDDeployment

public WSDDDeployment(Element e)
Create an element in WSDD that wraps an extant DOM element

Parameters: e the element to create the deployment from

Throws: WSDDException when problems occur deploying a service or type mapping.

Method Detail

addHandler

protected void addHandler(WSDDHandler handler)

addService

protected void addService(WSDDService service)

addTransport

protected void addTransport(WSDDTransport transport)

configureEngine

public void configureEngine(AxisEngine engine)

deployHandler

public void deployHandler(WSDDHandler handler)
Put a WSDDHandler into this deployment, replacing any other WSDDHandler which might already be present with the same QName.

Parameters: handler a WSDDHandler to insert in this deployment

deployService

public void deployService(WSDDService service)
Put a WSDDService into this deployment, replacing any other WSDDService which might already be present with the same QName.

Parameters: service a WSDDHandler to insert in this deployment

deployToRegistry

public void deployToRegistry(WSDDDeployment target)

deployTransport

public void deployTransport(WSDDTransport transport)
Put a WSDDTransport into this deployment, replacing any other WSDDTransport which might already be present with the same QName.

Parameters: transport a WSDDTransport to insert in this deployment

deployTypeMapping

public void deployTypeMapping(WSDDTypeMapping typeMapping)

getDeployedServices

public Iterator getDeployedServices()
Get an enumeration of the services deployed to this engine

getDeployment

public WSDDDeployment getDeployment()

getElementName

protected QName getElementName()

getEngine

public AxisEngine getEngine()

getGlobalConfiguration

public WSDDGlobalConfiguration getGlobalConfiguration()
Get our global configuration

Returns: a global configuration object

getGlobalOptions

public Hashtable getGlobalOptions()

getGlobalRequest

public Handler getGlobalRequest()

getGlobalResponse

public Handler getGlobalResponse()

getHandler

public Handler getHandler(QName name)
Return an instance of the named handler.

Parameters: name the name of the handler to get

Returns: an Axis handler with the specified QName or null of not found

getHandlers

public WSDDHandler[] getHandlers()

getRoles

public List getRoles()

getService

public SOAPService getService(QName name)
Retrieve an instance of the named service.

Parameters: name the QName identifying the Service

Returns: the Service associated with qname

Throws: ConfigurationException if there was an error resolving the qname

getServiceByNamespaceURI

public SOAPService getServiceByNamespaceURI(String namespace)

getServices

public WSDDService[] getServices()
Return an array of the services in this deployment

getTransport

public Handler getTransport(QName name)
Retrieve an instance of the named transport.

Parameters: name the QName of the transport

Returns: a Handler implementing the transport

Throws: ConfigurationException if there was an error resolving the transport

getTransports

public WSDDTransport[] getTransports()

getTypeMapping

public TypeMapping getTypeMapping(String encodingStyle)

getTypeMappingRegistry

public TypeMappingRegistry getTypeMappingRegistry()

getTypeMappings

public WSDDTypeMapping[] getTypeMappings()

Returns: an array of type mappings in this deployment

getWSDDHandler

public WSDDHandler getWSDDHandler(QName qname)

getWSDDService

public WSDDService getWSDDService(QName qname)
Return the WSDD description for a given named service

getWSDDTransport

public WSDDTransport getWSDDTransport(QName qname)

registerNamespaceForService

public void registerNamespaceForService(String namespace, WSDDService service)
Register a particular namepsace which maps to a given WSDDService. This will be used for namespace-based dispatching.

Parameters: namespace a namespace URI service the target WSDDService

removeNamespaceMapping

public void removeNamespaceMapping(String namespace)
Remove a namespace -> WSDDService mapping.

Parameters: namespace the namespace URI to unmap

setGlobalConfiguration

public void setGlobalConfiguration(WSDDGlobalConfiguration globalConfig)

undeployHandler

public void undeployHandler(QName qname)
Remove a named handler

Parameters: qname the QName of the handler to remove

undeployService

public void undeployService(QName qname)
Remove a named service

Parameters: qname the QName of the service to remove

undeployTransport

public void undeployTransport(QName qname)
Remove a named transport

Parameters: qname the QName of the transport to remove

writeEngineConfig

public void writeEngineConfig(AxisEngine engine)

writeToContext

public void writeToContext(SerializationContext context)
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.