Class ExternalOfferProviderProperties

java.lang.Object
com.broadleafcommerce.catalogbrowse.service.provider.external.offer.ExternalOfferProviderProperties

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

    • ExternalOfferProviderProperties

      public ExternalOfferProviderProperties()
  • Method Details

    • getUrl

      public String getUrl()
      The base url for an external offer service: https://localhost:8447/offer.
    • getMarketingMessagesUri

      public String getMarketingMessagesUri()
      The URI path for retrieving marketing messages. This is appended to url.
    • getOffersUri

      public String getOffersUri()
      The URI path for retrieving offers. This is appended to url.
    • getServiceClient

      public String getServiceClient()
      The service client to use when calling offer services. 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.
    • setUrl

      public void setUrl(String url)
      The base url for an external offer service: https://localhost:8447/offer.
    • setMarketingMessagesUri

      public void setMarketingMessagesUri(String marketingMessagesUri)
      The URI path for retrieving marketing messages. This is appended to url.
    • setOffersUri

      public void setOffersUri(String offersUri)
      The URI path for retrieving offers. This is appended to url.
    • setServiceClient

      public void setServiceClient(String serviceClient)
      The service client to use when calling offer services. Default is "catalogbrowseclient"
    • 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.