Class HrefUrlRewriteProcessor
java.lang.Object
org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
org.broadleafcommerce.cms.web.processor.UrlRewriteProcessor
org.broadleafcommerce.cms.web.processor.HrefUrlRewriteProcessor
- All Implemented Interfaces:
org.broadleafcommerce.presentation.dialect.BroadleafAttributeModifierProcessor,org.broadleafcommerce.presentation.dialect.BroadleafProcessor
@Component("blHrefUrlRewriteProcessor")
@ConditionalOnTemplating
public class HrefUrlRewriteProcessor
extends UrlRewriteProcessor
Similar to
UrlRewriteProcessor but handles href tags.
Mainly those that have a useCdn=true attribute or those that are inside a script tag.- Author:
- bpolster
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.common.file.service.StaticAssetPathServiceFields inherited from interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
DEFAULT_PRECEDENCE, DEFAULT_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.presentation.model.BroadleafAttributeModifiergetModifiedAttributes(String tagName, Map<String, String> tagAttributes, String attributeName, String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) getName()Methods inherited from class org.broadleafcommerce.cms.web.processor.UrlRewriteProcessor
getDefaultFileTypeImagePath, getFileExtension, getFullAssetPath, getPrecedence, getQueryString, isAdminRequest, isImageExtension, isImageTag, isRequestSecure, parsePathMethods inherited from class org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
getPrefix, useSingleQuotes
-
Field Details
-
staticAssetPathService
protected org.broadleafcommerce.common.file.service.StaticAssetPathService staticAssetPathService
-
-
Constructor Details
-
HrefUrlRewriteProcessor
public HrefUrlRewriteProcessor()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.broadleafcommerce.presentation.dialect.BroadleafProcessor- Overrides:
getNamein classUrlRewriteProcessor
-
getModifiedAttributes
public org.broadleafcommerce.presentation.model.BroadleafAttributeModifier getModifiedAttributes(String tagName, Map<String, String> tagAttributes, String attributeName, String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) - Specified by:
getModifiedAttributesin interfaceorg.broadleafcommerce.presentation.dialect.BroadleafAttributeModifierProcessor- Overrides:
getModifiedAttributesin classUrlRewriteProcessor
-