Class WebServices
java.lang.Object
com.aquima.interactions.portal.model.webservice.WebServices
- All Implemented Interfaces:
IWebServices
,Serializable
The internal implementation for the IWebServices interface.
- Since:
- 9.0
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWebServices
(IApplicationDS datasource, ModuleCache modules, IFlowEngine flowEngine, ISolution solution) This construct an WebServices implementation for a datasource. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addService
(WebServiceDefinition service) getService
(String serviceName) This method returns the service for the specified name.String[]
This method returns all the available service names.void
writeWsdl
(String serviceName, String wsdlName, IResourceResolver resourceResolver, OutputStream result) This method may be used to write the WSDL for a specified service.void
writeXsd
(String serviceName, String schemaName, IResourceResolver resourceResolver, OutputStream result) This method may be used to write the XSD for a specified service.
-
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
Description copied from interface:IWebServices
This method returns all the available service names.- Specified by:
getServiceNames
in interfaceIWebServices
- Returns:
- The service names, never null, but may be an empty array.
-
getService
Description copied from interface:IWebServices
This method returns the service for the specified name.- Specified by:
getService
in interfaceIWebServices
- Parameters:
serviceName
- The name of the service.- Returns:
- The service, never null.
- Throws:
UnknownWebServiceException
- This exception is thrown when no service is available for the specified name.
-
addService
- Throws:
InitializationException
-
writeWsdl
public void writeWsdl(String serviceName, String wsdlName, IResourceResolver resourceResolver, OutputStream result) throws InvalidWebServiceException, UnknownWebServiceException, IOException Description copied from interface:IWebServices
This method may be used to write the WSDL for a specified service.- Specified by:
writeWsdl
in interfaceIWebServices
- 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:
UnknownWebServiceException
- This exception is thrown when no service is available for the specified name.IOException
- This exception is thrown when a problem occurs writing to the result writer.InvalidWebServiceException
-
writeXsd
public void writeXsd(String serviceName, String schemaName, IResourceResolver resourceResolver, OutputStream result) throws InvalidWebServiceException, UnknownWebServiceException, IOException Description copied from interface:IWebServices
This method may be used to write the XSD for a specified service.- Specified by:
writeXsd
in interfaceIWebServices
- 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:
UnknownWebServiceException
- This exception is thrown when no service is available for the specified name.IOException
- This exception is thrown when a problem occurs writing to the result writer.InvalidWebServiceException
-