Class ExternalPricingProviderProperties

java.lang.Object
com.broadleafcommerce.catalogbrowse.service.provider.external.pricing.ExternalPricingProviderProperties

@ConfigurationProperties("broadleaf.catalogbrowse.pricingprovider") public class ExternalPricingProviderProperties extends Object
Author:
Nathan Moore (nathandmoore)
  • Constructor Details

    • ExternalPricingProviderProperties

      public ExternalPricingProviderProperties()
  • Method Details

    • getUrl

      public String getUrl()
      The base url for an external cart service.
    • setUrl

      public void setUrl(String url)
      The base url for an external cart service.
    • getPriceInfosUri

      public String getPriceInfosUri()
      The URI path for pricing items.
    • setPriceInfosUri

      public void setPriceInfosUri(String priceInfosUri)
      The URI path for pricing items.
    • getServiceClient

      public String getServiceClient()
      The service client to use when interacting with pricing service. Default is "catalogbrowseclient"
    • setServiceClient

      public void setServiceClient(String serviceClient)
      The service client to use when interacting with pricing service. Default is "catalogbrowseclient"
    • isLoopbackOptimizationEnabled

      public boolean isLoopbackOptimizationEnabled()
      Where available, whether optimizing microservice interlink requests should be optimized with a direct method call when the targeted service is colocated in the same flexpackage. This saves on expenses related to socket creation, json serialization/deserialization, and SSL encryption and handshake. True by default. Note, this value is examined in concert with ExternalClientProperties.Client.isLoopbackOptimizationEnabled(). Both must be true, and the latter property is false by default.
    • setLoopbackOptimizationEnabled

      public void setLoopbackOptimizationEnabled(boolean loopbackOptimizationEnabled)
      Where available, whether optimizing microservice interlink requests should be optimized with a direct method call when the targeted service is colocated in the same flexpackage. This saves on expenses related to socket creation, json serialization/deserialization, and SSL encryption and handshake. True by default. Note, this value is examined in concert with ExternalClientProperties.Client.isLoopbackOptimizationEnabled(). Both must be true, and the latter property is false by default.