org.apache.axis.deployment.wsdd

Class WSDDService

public class WSDDService extends WSDDTargetedChain implements WSDDTypeMappingContainer

A service represented in WSDD.

Author: Glen Daniels (gdaniels@apache.org)

Constructor Summary
WSDDService()
Default constructor
WSDDService(Element e)
Method Summary
voidaddOperation(WSDDOperation operation)
Add a WSDDOperation to the Service.
voidaddTypeMapping(WSDDTypeMapping mapping)
Add a WSDDTypeMapping to the Service.
voiddeployToRegistry(WSDDDeployment registry)
voiddeployTypeMapping(WSDDTypeMapping mapping)
protected QNamegetElementName()
WSDDFaultFlowgetFaultFlow(QName name)
WSDDFaultFlow[]getFaultFlows()
WSDDJAXRPCHandlerInfoChaingetHandlerInfoChain()
VectorgetNamespaces()
Obtain the list of namespaces registered for this service
QNamegetProviderQName()
ServiceDescgetServiceDesc()
StringgetServiceDescriptionURL()
Get any service description URL which might be associated with this service.
StylegetStyle()
Get the service style - document or RPC
TypeMappinggetTypeMapping(String encodingStyle)
VectorgetTypeMappings()
UsegetUse()
Get the service use - literal or encoded
protected voidinitTMR()
Initialize a TypeMappingRegistry with the WSDDTypeMappings.
HandlermakeNewInstance(EngineConfiguration registry)
voidremoveNamespaceMappings(WSDDDeployment registry)
voidsetCachedService(SOAPService service)
voidsetHandlerInfoChain(WSDDJAXRPCHandlerInfoChain hichain)
voidsetProviderQName(QName providerQName)
voidsetServiceDescriptionURL(String sdUrl)
Set the service description URL for this service.
voidsetStyle(Style style)
Set the service style - document or RPC
voidsetTypeMappings(Vector typeMappings)
voidsetUse(Use use)
Set the service use - literal or encoded
voidvalidateDescriptors()
This method can be used for dynamic deployment using new WSDDService() etc.
voidwriteToContext(SerializationContext context)
Write this element out to a SerializationContext

Constructor Detail

WSDDService

public WSDDService()
Default constructor

WSDDService

public WSDDService(Element e)

Parameters: e (Element) XXX

Throws: WSDDException XXX

Method Detail

addOperation

public void addOperation(WSDDOperation operation)
Add a WSDDOperation to the Service.

Parameters: operation the operation to add

addTypeMapping

public void addTypeMapping(WSDDTypeMapping mapping)
Add a WSDDTypeMapping to the Service.

Parameters: mapping

deployToRegistry

public void deployToRegistry(WSDDDeployment registry)

deployTypeMapping

public void deployTypeMapping(WSDDTypeMapping mapping)

getElementName

protected QName getElementName()

getFaultFlow

public WSDDFaultFlow getFaultFlow(QName name)

Parameters: name XXX

Returns: XXX

getFaultFlows

public WSDDFaultFlow[] getFaultFlows()

Returns: XXX

getHandlerInfoChain

public WSDDJAXRPCHandlerInfoChain getHandlerInfoChain()

getNamespaces

public Vector getNamespaces()
Obtain the list of namespaces registered for this service

Returns: a Vector of namespaces (Strings) which should dispatch to this service

getProviderQName

public QName getProviderQName()

getServiceDesc

public ServiceDesc getServiceDesc()

getServiceDescriptionURL

public String getServiceDescriptionURL()
Get any service description URL which might be associated with this service.

Returns: a String containing a URL, or null.

getStyle

public Style getStyle()
Get the service style - document or RPC

getTypeMapping

public TypeMapping getTypeMapping(String encodingStyle)

getTypeMappings

public Vector getTypeMappings()

getUse

public Use getUse()
Get the service use - literal or encoded

initTMR

protected void initTMR()
Initialize a TypeMappingRegistry with the WSDDTypeMappings. Note: Extensions of WSDDService may override initTMR to popluate the tmr with different type mappings.

makeNewInstance

public Handler makeNewInstance(EngineConfiguration registry)

Parameters: registry XXX

Returns: XXX

Throws: ConfigurationException XXX

removeNamespaceMappings

public void removeNamespaceMappings(WSDDDeployment registry)

setCachedService

public void setCachedService(SOAPService service)

setHandlerInfoChain

public void setHandlerInfoChain(WSDDJAXRPCHandlerInfoChain hichain)

setProviderQName

public void setProviderQName(QName providerQName)

setServiceDescriptionURL

public void setServiceDescriptionURL(String sdUrl)
Set the service description URL for this service.

Parameters: sdUrl a String containing a URL

setStyle

public void setStyle(Style style)
Set the service style - document or RPC

setTypeMappings

public void setTypeMappings(Vector typeMappings)

setUse

public void setUse(Use use)
Set the service use - literal or encoded

validateDescriptors

public void validateDescriptors()
This method can be used for dynamic deployment using new WSDDService() etc. It validates some standard parameters for some standard providers (if present). Do this before deployment.deployService().

writeToContext

public void writeToContext(SerializationContext context)
Write this element out to a SerializationContext
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.