Class WSDDService

All Implemented Interfaces:
Serializable, WSDDTypeMappingContainer

public class WSDDService extends WSDDTargetedChain implements WSDDTypeMappingContainer
A service represented in WSDD.
Author:
Glen Daniels (gdaniels@apache.org)
See Also:
  • Constructor Details

    • WSDDService

      public WSDDService()
      Default constructor
    • WSDDService

      public WSDDService(Element e) throws WSDDException
      Parameters:
      e - (Element) XXX
      Throws:
      WSDDException - XXX
  • Method Details

    • initTMR

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

      public void validateDescriptors() throws WSDDException
      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().
      Throws:
      WSDDException
    • addTypeMapping

      public void addTypeMapping(WSDDTypeMapping mapping)
      Add a WSDDTypeMapping to the Service.
      Parameters:
      mapping -
    • addOperation

      public void addOperation(WSDDOperation operation)
      Add a WSDDOperation to the Service.
      Parameters:
      operation - the operation to add
    • getElementName

      protected QName getElementName()
      Description copied from class: WSDDElement
      Return the element name of a particular subclass.
      Specified by:
      getElementName in class WSDDElement
    • getServiceDescriptionURL

      public String getServiceDescriptionURL()
      Get any service description URL which might be associated with this service.
      Returns:
      a String containing a URL, or null.
    • setServiceDescriptionURL

      public void setServiceDescriptionURL(String sdUrl)
      Set the service description URL for this service.
      Parameters:
      sdUrl - a String containing a URL
    • getProviderQName

      public QName getProviderQName()
    • setProviderQName

      public void setProviderQName(QName providerQName)
    • getServiceDesc

      public ServiceDesc getServiceDesc()
    • getStyle

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

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

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

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

      public WSDDFaultFlow[] getFaultFlows()
      Overrides:
      getFaultFlows in class WSDDTargetedChain
      Returns:
      XXX
    • 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
    • getFaultFlow

      public WSDDFaultFlow getFaultFlow(QName name)
      Overrides:
      getFaultFlow in class WSDDTargetedChain
      Parameters:
      name - XXX
      Returns:
      XXX
    • makeNewInstance

      public Handler makeNewInstance(EngineConfiguration registry) throws ConfigurationException
      Description copied from class: WSDDDeployableItem
      Creates a new instance of this deployable. if the java class is not found, the registry is queried to find a suitable item
      Overrides:
      makeNewInstance in class WSDDTargetedChain
      Parameters:
      registry - XXX
      Returns:
      XXX
      Throws:
      ConfigurationException - XXX
    • deployTypeMapping

      public void deployTypeMapping(WSDDTypeMapping mapping) throws WSDDException
      Specified by:
      deployTypeMapping in interface WSDDTypeMappingContainer
      Throws:
      WSDDException
    • writeToContext

      public void writeToContext(SerializationContext context) throws IOException
      Write this element out to a SerializationContext
      Specified by:
      writeToContext in class WSDDElement
      Throws:
      IOException
    • setCachedService

      public void setCachedService(SOAPService service)
    • getTypeMappings

      public Vector getTypeMappings()
    • setTypeMappings

      public void setTypeMappings(Vector typeMappings)
    • deployToRegistry

      public void deployToRegistry(WSDDDeployment registry)
      Overrides:
      deployToRegistry in class WSDDTargetedChain
    • removeNamespaceMappings

      public void removeNamespaceMappings(WSDDDeployment registry)
    • getTypeMapping

      public TypeMapping getTypeMapping(String encodingStyle)
    • getHandlerInfoChain

      public WSDDJAXRPCHandlerInfoChain getHandlerInfoChain()
    • setHandlerInfoChain

      public void setHandlerInfoChain(WSDDJAXRPCHandlerInfoChain hichain)