Class RestServiceDefinition
java.lang.Object
com.aquima.interactions.communication.impl.RestServiceDefinition
- All Implemented Interfaces:
IRestServiceDefinition
This class holds the static definition of a rest service.
- Since:
- 9.0
- Author:
- Arjan Pragt
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RestServiceDefinition
(IRestServiceDS datasource, CommunicationEngine engine, IMetaModel metamodel, IRuleEngine ruleEngine) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Returns the location url of the service.getName()
Returns the name of the service.getOperation
(String operationName) Returns an operation of the service.String[]
Returns all available operation names in the service.Returns the corresponding schemaset of the service.boolean
Returns a indicator whether to use domain schemas (otherwise schemasets are used).
-
Constructor Details
-
RestServiceDefinition
protected RestServiceDefinition(IRestServiceDS datasource, CommunicationEngine engine, IMetaModel metamodel, IRuleEngine ruleEngine) throws InitializationException - Throws:
InitializationException
-
-
Method Details
-
getName
Description copied from interface:IRestServiceDefinition
Returns the name of the service.- Specified by:
getName
in interfaceIRestServiceDefinition
- Returns:
- The name of the service, may not be null.
-
getLocation
Description copied from interface:IRestServiceDefinition
Returns the location url of the service.- Specified by:
getLocation
in interfaceIRestServiceDefinition
- Returns:
- The location url of the service, may be null.
-
getSchemaSet
Description copied from interface:IRestServiceDefinition
Returns the corresponding schemaset of the service.- Specified by:
getSchemaSet
in interfaceIRestServiceDefinition
- Returns:
- The schemaset definition of the service, may be null in case of a domain schema.
-
useDomainSchemas
public boolean useDomainSchemas()Description copied from interface:IRestServiceDefinition
Returns a indicator whether to use domain schemas (otherwise schemasets are used).- Specified by:
useDomainSchemas
in interfaceIRestServiceDefinition
- Returns:
- Indicator for using domain schemas.
-
getOperation
Description copied from interface:IRestServiceDefinition
Returns an operation of the service.- Specified by:
getOperation
in interfaceIRestServiceDefinition
- Parameters:
operationName
- The name of the operation, may not be null.- Returns:
- The definition of the operation.
- Throws:
UnknownOperationException
- when the operation does not exists for the rest service.
-
getOperationNames
Description copied from interface:IRestServiceDefinition
Returns all available operation names in the service.- Specified by:
getOperationNames
in interfaceIRestServiceDefinition
- Returns:
- The operation names of the service, may not be null.
-
addOperation
- Throws:
InitializationException
-