java.lang.Object
com.aquima.interactions.portal.model.webservice.WebServices
All Implemented Interfaces:
IWebServices, Serializable

public final class WebServices extends Object implements IWebServices
The internal implementation for the IWebServices interface.
Since:
9.0
Author:
Jon van Leuven
See Also:
  • Constructor Details

    • WebServices

      public WebServices(IApplicationDS datasource, ModuleCache modules, IFlowEngine flowEngine, ISolution solution)
      This construct an WebServices implementation for a datasource. The other mandatory objects are used for definition lookup and validation.
      Parameters:
      datasource - The datasource containing the definition values, may not be null.
      modules - The available modules, may not be null.
      flowEngine - The flow engine of the main module, may not be null.
      solution - The solution, may not be null.
  • Method Details

    • getServiceNames

      public String[] getServiceNames()
      Description copied from interface: IWebServices
      This method returns all the available service names.
      Specified by:
      getServiceNames in interface IWebServices
      Returns:
      The service names, never null, but may be an empty array.
    • getService

      public IWebServiceDefinition getService(String serviceName)
      Description copied from interface: IWebServices
      This method returns the service for the specified name.
      Specified by:
      getService in interface IWebServices
      Parameters:
      serviceName - The name of the service.
      Returns:
      The service, never null.
    • addService

      protected void addService(WebServiceDefinition service)
    • writeWsdl

      public void writeWsdl(String serviceName, String wsdlName, IResourceResolver resourceResolver, OutputStream result) throws IOException
      Description copied from interface: IWebServices
      This method may be used to write the WSDL for a specified service.
      Specified by:
      writeWsdl in interface IWebServices
      Parameters:
      serviceName - The name of the service, may not be null.
      wsdlName - The name of the wsdl, when null the main wsdl of the service is used.
      resourceResolver - The resolver to write the resources used, may not be null.
      result - The outputstream to write the resulting data to, may not be null.
      Throws:
      IOException - This exception is thrown when a problem occurs writing to the result writer.
    • writeXsd

      public void writeXsd(String serviceName, String schemaName, IResourceResolver resourceResolver, OutputStream result) throws IOException
      Description copied from interface: IWebServices
      This method may be used to write the XSD for a specified service.
      Specified by:
      writeXsd in interface IWebServices
      Parameters:
      serviceName - The name of the service, may not be null.
      schemaName - The name of the schema, may not be null.
      resourceResolver - The resolver to write the resources used, may not be null.
      result - The outputstream to write the resulting data to, may not be null.
      Throws:
      IOException - This exception is thrown when a problem occurs writing to the result writer.