@Component(value="blUrlRewriteProcessor")
@ConditionalOnTemplating
public class UrlRewriteProcessor
extends org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessor
StaticAssetService.convertAssetPath(String, String, boolean) method to determine
the appropriate URL for the asset to be served from.| Modifier and Type | Field and Description |
|---|---|
protected org.broadleafcommerce.common.file.service.StaticAssetPathService |
staticAssetPathService |
| Constructor and Description |
|---|
UrlRewriteProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDefaultFileTypeImagePath(String extension) |
protected String |
getFileExtension(String assetPath) |
protected String |
getFullAssetPath(String tagName,
String attributeValue,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
org.broadleafcommerce.presentation.model.BroadleafAttributeModifier |
getModifiedAttributes(String tagName,
Map<String,String> tagAttributes,
String attributeName,
String attributeValue,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
String |
getName() |
int |
getPrecedence() |
protected String |
getQueryString(String assetPath) |
protected boolean |
isAdminRequest() |
protected Boolean |
isImageExtension(String extension) |
protected boolean |
isImageTag(String tagName) |
protected boolean |
isRequestSecure(javax.servlet.http.HttpServletRequest request) |
protected String |
parsePath(String attributeValue,
org.broadleafcommerce.presentation.model.BroadleafTemplateContext context) |
protected org.broadleafcommerce.common.file.service.StaticAssetPathService staticAssetPathService
public String getName()
public int getPrecedence()
getPrecedence in interface org.broadleafcommerce.presentation.dialect.BroadleafProcessorgetPrecedence in class org.broadleafcommerce.presentation.dialect.AbstractBroadleafAttributeModifierProcessorpublic org.broadleafcommerce.presentation.model.BroadleafAttributeModifier getModifiedAttributes(String tagName, Map<String,String> tagAttributes, String attributeName, String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
protected String getFullAssetPath(String tagName, String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
protected boolean isRequestSecure(javax.servlet.http.HttpServletRequest request)
protected boolean isImageTag(String tagName)
protected boolean isAdminRequest()
protected String parsePath(String attributeValue, org.broadleafcommerce.presentation.model.BroadleafTemplateContext context)
Copyright © 2020. All rights reserved.