Class ServiceCallBuilder

java.lang.Object
com.lucidworks.cloud.api.call.impl.ServiceCallBuilder
All Implemented Interfaces:
CallBuilder

public class ServiceCallBuilder extends Object implements CallBuilder
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServiceCallBuilder(javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider, String fusionProtocol, org.springframework.web.client.RestTemplate restTemplate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    build(com.lucidworks.apollo.common.models.CallParams serviceCallParams)
    Build a ServiceCall from CallParams Service URIs look like service://{service}/{path}.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public Call build(com.lucidworks.apollo.common.models.CallParams serviceCallParams)
      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:
      build in interface CallBuilder
    • getSchemes

      public String[] getSchemes()
      Specified by:
      getSchemes in interface CallBuilder