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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe URI path for retrieving marketing messages.The URI path for retrieving offers.The service client to use when calling offer services.getUrl()The base url for an external offer service:https://localhost:8447/offer.booleanWhere available, whether optimizing microservice interlink requests should be optimized with a direct method call when the targeted service is colocated in the same flexpackage.voidsetLoopbackOptimizationEnabled(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.voidsetMarketingMessagesUri(String marketingMessagesUri) The URI path for retrieving marketing messages.voidsetOffersUri(String offersUri) The URI path for retrieving offers.voidsetServiceClient(String serviceClient) The service client to use when calling offer services.voidThe base url for an external offer service:https://localhost:8447/offer.
-
Constructor Details
-
ExternalOfferProviderProperties
public ExternalOfferProviderProperties()
-
-
Method Details
-
getUrl
The base url for an external offer service:https://localhost:8447/offer. -
getMarketingMessagesUri
The URI path for retrieving marketing messages. This is appended tourl. -
getOffersUri
The URI path for retrieving offers. This is appended tourl. -
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 withExternalClientProperties.Client.isLoopbackOptimizationEnabled(). Both must be true, and the latter property is false by default. -
setUrl
The base url for an external offer service:https://localhost:8447/offer. -
setMarketingMessagesUri
The URI path for retrieving marketing messages. This is appended tourl. -
setOffersUri
The URI path for retrieving offers. This is appended tourl. -
setServiceClient
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 withExternalClientProperties.Client.isLoopbackOptimizationEnabled(). Both must be true, and the latter property is false by default.
-