Package com.almis.awe.service.connector
Class RestConnector
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.connector.AbstractRestConnector
com.almis.awe.service.connector.RestConnector
- All Implemented Interfaces:
ServiceConnector
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Launches a Rest service
-
Constructor Summary
ConstructorDescriptionRestConnector
(org.springframework.http.client.ClientHttpRequestFactory requestFactory, 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
-
RestConnector
public RestConnector(org.springframework.http.client.ClientHttpRequestFactory requestFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper, RestConfigProperties restConfigProperties) Autowired constructor- Parameters:
requestFactory
- Request factoryrestConfigProperties
- Rest config 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
-