Class RestServiceTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.communication.RestServiceTemplate
This class may be used to quickly initialize a model.
- Since:
- 9.0
- Author:
- Jon van Leuven, Arjan Pragt
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RestServiceTemplate
(String serviceName, String schemaSet, boolean useDomainSchemas, com.aquima.interactions.foundation.report.IInitializationReport report) -
Method Summary
Modifier and TypeMethodDescriptionaddOperation
(String operationName) Use this method to add an operation to this webservice.protected boolean
protected com.aquima.interactions.communication.impl.RestServiceDirection
protected String
protected String
getName()
protected Iterator
<RestOperationTemplate> protected String
void
setDirection
(com.aquima.interactions.communication.impl.RestServiceDirection direction) void
setLocation
(String location) This method sets the location of the rest service.void
setSchemaSet
(String schemaSet) This method sets the schemaset of the rest service.com.aquima.interactions.communication.ds.IRestServiceDS
This method converts the template to a data source that can be used to initialize the definition.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
RestServiceTemplate
-
-
Method Details
-
getLocation
-
setLocation
This method sets the location of the rest service.- Parameters:
location
- The url of the rest service, may not be null.
-
getSchemaSet
-
setSchemaSet
This method sets the schemaset of the rest service.- Parameters:
schemaSet
- The name of the schemaset, may not be null.
-
addOperation
Use this method to add an operation to this webservice.- Parameters:
operationName
- The operation name.- Returns:
- The created template.
-
toDataSource
public com.aquima.interactions.communication.ds.IRestServiceDS toDataSource()This method converts the template to a data source that can be used to initialize the definition.- Returns:
- a data source that can be used to initialize the definition.
-
getName
-
getOperations
-
doesUseDomainSchemas
protected boolean doesUseDomainSchemas() -
getDirection
protected com.aquima.interactions.communication.impl.RestServiceDirection getDirection() -
setDirection
public void setDirection(com.aquima.interactions.communication.impl.RestServiceDirection direction)
-