Class WebServiceConfiguration
- java.lang.Object
-
- com.aquima.interactions.portal.model.webservice.WebServiceConfiguration
-
- All Implemented Interfaces:
IWebServiceConfiguration
- Direct Known Subclasses:
RestServiceConfiguration
,SoapServiceConfiguration
public class WebServiceConfiguration extends Object implements IWebServiceConfiguration
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WebServiceConfiguration(IWebServiceConfigurationDS datasource, ModuleCache modules, IModule module, IFlowEngine flowEngine, ISolution solution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addOperation(WebOperationDefinition operation)
IWebServiceOperationDefinition
getOperation(String name)
This method returns the operation that is available in this service.String[]
getOperationNames()
String[]
getOperations()
This method returns the available operation names for this service.boolean
validate()
This method returns an indicator whether the service should validate incoming request.
-
-
-
Constructor Detail
-
WebServiceConfiguration
protected WebServiceConfiguration(IWebServiceConfigurationDS datasource, ModuleCache modules, IModule module, IFlowEngine flowEngine, ISolution solution) throws InitializationException
- Throws:
InitializationException
-
-
Method Detail
-
validate
public boolean validate()
Description copied from interface:IWebServiceConfiguration
This method returns an indicator whether the service should validate incoming request.- Specified by:
validate
in interfaceIWebServiceConfiguration
- Returns:
- Indicator to validate services.
-
getOperationNames
public String[] getOperationNames()
-
getOperation
public IWebServiceOperationDefinition getOperation(String name) throws UnknownOperationException
Description copied from interface:IWebServiceConfiguration
This method returns the operation that is available in this service.- Specified by:
getOperation
in interfaceIWebServiceConfiguration
- Parameters:
name
- The name of the operation, may not be null.- Returns:
- The operation, never null.
- Throws:
UnknownOperationException
- Is thrown when the operation does not exist for the specified name.
-
addOperation
protected void addOperation(WebOperationDefinition operation) throws InitializationException
- Throws:
InitializationException
-
getOperations
public String[] getOperations()
Description copied from interface:IWebServiceConfiguration
This method returns the available operation names for this service.- Specified by:
getOperations
in interfaceIWebServiceConfiguration
- Returns:
- An array containing the available operation names for this service, never null or empty.
-
-