Class ExternalCatalogProviderProperties
java.lang.Object
com.broadleafcommerce.catalogbrowse.service.provider.external.catalog.ExternalCatalogProviderProperties
@ConfigurationProperties("broadleaf.catalogbrowse.catalogprovider")
public class ExternalCatalogProviderProperties
extends Object
- Author:
- Nathan Moore (nathandmoore)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe URI path for retrieving browse entities when the type is not known by the caller.The URI path for retrieving cart field mappings.The URI path for retrieving categories.The URI path for retrieving data driven enums.The URI path for retrieving product assets.The URI path for retrieving products.The URI path for retrieving product tags.The service client to use when interacting with catalog.getUrl()The base url for an external catalog service:https://localhost:8447/catalog.booleanWhether to reduce the overall payload size of response by trimming typically unnecessary information fromAssetssuch asContextState.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.voidsetAssetMinificationEnabled(boolean assetMinificationEnabled) Whether to reduce the overall payload size of response by trimming typically unnecessary information fromAssetssuch asContextState.voidsetBrowseEntitiesUri(String browseEntitiesUri) The URI path for retrieving browse entities when the type is not known by the caller.voidsetCartFieldMappingsUri(String cartFieldMappingsUri) The URI path for retrieving cart field mappings.voidsetCategoriesUri(String categoriesUri) The URI path for retrieving categories.voidsetDataDrivenEnumsUri(String dataDrivenEnumsUri) The URI path for retrieving data driven enums.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.voidsetProductAssetsUri(String productAssetsUri) The URI path for retrieving product assets.voidsetProductsUri(String productsUri) The URI path for retrieving products.voidsetProductTagsUri(String productTagsUri) The URI path for retrieving product tags.voidsetServiceClient(String serviceClient) The service client to use when interacting with catalog.voidThe base url for an external catalog service:https://localhost:8447/catalog.
-
Constructor Details
-
ExternalCatalogProviderProperties
public ExternalCatalogProviderProperties()
-
-
Method Details
-
getUrl
The base url for an external catalog service:https://localhost:8447/catalog. -
getProductsUri
The URI path for retrieving products. This is appended tourl. -
getProductAssetsUri
The URI path for retrieving product assets. This is appended toproductsUri. Note that this is only necessary if assets are requested separately from product details such as for hydrating search results. Otherwise, they are already hydrated on the results of#fetchProductsWithDetailsand#fetchCategoryWithDetails. -
getCategoriesUri
The URI path for retrieving categories. -
getBrowseEntitiesUri
The URI path for retrieving browse entities when the type is not known by the caller. This could be the case when the caller has a browser URL but does not know if it belongs to a Catalog or a Product. -
getDataDrivenEnumsUri
The URI path for retrieving data driven enums. -
getCartFieldMappingsUri
The URI path for retrieving cart field mappings. -
getProductTagsUri
The URI path for retrieving product tags. This is appended toproductsUri. Note that this is only necessary if tags are requested separately from product details such as for hydrating search results. Otherwise, they are already hydrated on the results of#fetchProductsWithDetailsand#fetchCategoryWithDetails. -
getServiceClient
The service client to use when interacting with catalog. 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. -
isAssetMinificationEnabled
public boolean isAssetMinificationEnabled()Whether to reduce the overall payload size of response by trimming typically unnecessary information fromAssetssuch asContextState. -
setUrl
The base url for an external catalog service:https://localhost:8447/catalog. -
setProductsUri
The URI path for retrieving products. This is appended tourl. -
setProductAssetsUri
The URI path for retrieving product assets. This is appended toproductsUri. Note that this is only necessary if assets are requested separately from product details such as for hydrating search results. Otherwise, they are already hydrated on the results of#fetchProductsWithDetailsand#fetchCategoryWithDetails. -
setCategoriesUri
The URI path for retrieving categories. -
setBrowseEntitiesUri
The URI path for retrieving browse entities when the type is not known by the caller. This could be the case when the caller has a browser URL but does not know if it belongs to a Catalog or a Product. -
setDataDrivenEnumsUri
The URI path for retrieving data driven enums. -
setCartFieldMappingsUri
The URI path for retrieving cart field mappings. -
setProductTagsUri
The URI path for retrieving product tags. This is appended toproductsUri. Note that this is only necessary if tags are requested separately from product details such as for hydrating search results. Otherwise, they are already hydrated on the results of#fetchProductsWithDetailsand#fetchCategoryWithDetails. -
setServiceClient
The service client to use when interacting with catalog. 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. -
setAssetMinificationEnabled
public void setAssetMinificationEnabled(boolean assetMinificationEnabled) Whether to reduce the overall payload size of response by trimming typically unnecessary information fromAssetssuch asContextState.
-