Class ServiceCallBuilder
java.lang.Object
com.lucidworks.cloud.api.call.impl.ServiceCallBuilder
- All Implemented Interfaces:
CallBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionServiceCallBuilder(javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider, String fusionProtocol, org.springframework.web.client.RestTemplate restTemplate) -
Method Summary
-
Constructor Details
-
ServiceCallBuilder
public ServiceCallBuilder(javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider, String fusionProtocol, @Named("restTemplate") org.springframework.web.client.RestTemplate restTemplate)
-
-
Method Details
-
build
Build a ServiceCall from CallParams Service URIs look like service://{service}/{path}. Service has to be known to Spring LoadBalanced RestTemplate. We then re-attach the path and queryParams parts of the original URI. The other properties of CallParams (queryParams, headers, entity) are left unmodified.- Specified by:
buildin interfaceCallBuilder
-
getSchemes
- Specified by:
getSchemesin interfaceCallBuilder
-