Package com.almis.awe.service.connector
Class MicroserviceConnector
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.connector.AbstractRestConnector
com.almis.awe.service.connector.MicroserviceConnector
- All Implemented Interfaces:
ServiceConnector
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Launches a Microservice
-
Constructor Summary
ConstructorDescriptionMicroserviceConnector
(org.springframework.http.client.ClientHttpRequestFactory requestFactory, QueryUtil queryUtil, com.fasterxml.jackson.databind.ObjectMapper objectMapper, RestConfigProperties restConfigProperties) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionlaunch
(ServiceType service, Map<String, Object> paramsMapFromRequest) Launch serviceMethods inherited from class com.almis.awe.service.connector.AbstractRestConnector
checkServiceResponse, doRequest, generateRequest, subscribe
Methods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
MicroserviceConnector
public MicroserviceConnector(org.springframework.http.client.ClientHttpRequestFactory requestFactory, QueryUtil queryUtil, com.fasterxml.jackson.databind.ObjectMapper objectMapper, RestConfigProperties restConfigProperties) Autowired constructor- Parameters:
requestFactory
- Request factoryqueryUtil
- Query UtilobjectMapper
- Object mapperrestConfigProperties
- Microservice configuration properties
-
-
Method Details
-
launch
public ServiceData launch(ServiceType service, Map<String, Object> paramsMapFromRequest) throws AWExceptionDescription copied from interface:ServiceConnector
Launch service- Parameters:
service
- Service to launchparamsMapFromRequest
- Parameter list- Returns:
- Service data
- Throws:
AWException
- Error launching service
-