UriComponentsBuilder.fromHttpUrl(getUrl())
.path(getProductsUri())
.queryParam("productUris", productUris)
.toUriString();
Provider for interfacing with Offer entities. This is used to retrieve the basic information for offers and codes.
The default implementation, ExternalOfferProvider
, is designed to interact with the Broadleaf Offer Services, which handles building out the DTOs for offers and codes.
This ensures that the fewest number of HTTP requests are made as possible so that the caller does not need to handle as much of the complexity related to the Offer
domain hierarchy.
ExternalOfferProvider
defines the following configuration properties:
broadleaf.catalogbrowse.offerprovider.url
: The base url for an external offer service.
broadleaf.catalogbrowse.offerprovider.marketingMessagesUri
: The URI path for retrieving marketing messages
This is appended to the url
property.
broadleaf.catalogbrowse.offerprovider.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
Since version 2.1.0
UriComponentsBuilder.fromHttpUrl(getUrl())
.path(getProductsUri())
.queryParam("productUris", productUris)
.toUriString();