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 Details

    • staticAssetPathService

      protected org.broadleafcommerce.common.file.service.StaticAssetPathService staticAssetPathService
  • Constructor Details

    • HrefUrlRewriteProcessor

      public HrefUrlRewriteProcessor()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessor
      Overrides:
      getName in class UrlRewriteProcessor
    • 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:
      getModifiedAttributes in interface org.broadleafcommerce.presentation.dialect.BroadleafAttributeModifierProcessor
      Overrides:
      getModifiedAttributes in class UrlRewriteProcessor