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 direction of the service.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)
-
-
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.
-
getDirection
Description copied from interface:IRestServiceDefinition
Returns the direction of the service.- Specified by:
getDirection
in interfaceIRestServiceDefinition
- Returns:
- Whether the service is used for outgoing requests, incoming requests or both, may not be null.
-
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
-