@Service(value="blCatalogURLService") public class CatalogURLServiceImpl extends Object implements CatalogURLService
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
appendIdToRelativeURI |
protected String |
categoryIdParam |
protected String |
productIdParam |
protected boolean |
useUrlKey |
| Constructor and Description |
|---|
CatalogURLServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildRelativeCategoryURL(String currentUrl,
Category category)
See similar description for
CatalogURLService.buildRelativeProductURL(String, Product) |
String |
buildRelativeProductURL(String currentUrl,
Product product)
Provides relative URLs.
|
protected String |
buildRelativeUrlWithParam(String currentUrl,
String fragment,
String idParam,
String idValue)
Adds the fragment to the end of the path and optionally adds an id param depending upon
the value of appendIdToRelativeURI.
|
protected String |
getCategoryUrlFragment(Category category) |
protected String |
getLastFragment(String url) |
protected String |
getProductUrlFragment(Product product) |
@Value(value="${catalogUriService.appendIdToRelativeURI:true}")
protected boolean appendIdToRelativeURI
@Value(value="${catalogUriService.useUrlKey:false}")
protected boolean useUrlKey
@Value(value="${catalogUriService.productIdParam:productId}")
protected String productIdParam
@Value(value="${catalogUriService.categoryIdParam:categoryId}")
protected String categoryIdParam
public String buildRelativeProductURL(String currentUrl, Product product)
CatalogURLServicebuildRelativeProductURL in interface CatalogURLServicepublic String buildRelativeCategoryURL(String currentUrl, Category category)
CatalogURLServiceCatalogURLService.buildRelativeProductURL(String, Product)buildRelativeCategoryURL in interface CatalogURLServiceprotected String buildRelativeUrlWithParam(String currentUrl, String fragment, String idParam, String idValue)
Copyright © 2017. All rights reserved.