public class UrlRewriteProcessor
extends org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
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 StaticAssetPathService |
staticAssetPathService |
| Modifier | Constructor and Description |
|---|---|
|
UrlRewriteProcessor()
Sets the name of this processor to be used in Thymeleaf template
|
protected |
UrlRewriteProcessor(String attributeName) |
| Modifier and Type | Method and Description |
|---|---|
protected org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor.ModificationType |
getModificationType(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName,
String newAttributeName) |
protected Map<String,String> |
getModifiedAttributeValues(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName) |
int |
getPrecedence() |
protected boolean |
isRequestSecure(javax.servlet.http.HttpServletRequest request) |
protected boolean |
recomputeProcessorsAfterExecution(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName) |
protected boolean |
removeAttributeIfEmpty(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName,
String newAttributeName) |
doAdditionalProcess, processAttribute, shouldRemoveAttributedoProcess, getMatcherprotected StaticAssetPathService staticAssetPathService
public UrlRewriteProcessor()
protected UrlRewriteProcessor(String attributeName)
public int getPrecedence()
getPrecedence in class org.thymeleaf.processor.AbstractProcessorprotected boolean isRequestSecure(javax.servlet.http.HttpServletRequest request)
protected Map<String,String> getModifiedAttributeValues(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName)
getModifiedAttributeValues in class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessorprotected org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor.ModificationType getModificationType(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName,
String newAttributeName)
getModificationType in class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessorprotected boolean removeAttributeIfEmpty(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName,
String newAttributeName)
removeAttributeIfEmpty in class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessorprotected boolean recomputeProcessorsAfterExecution(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName)
recomputeProcessorsAfterExecution in class org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessorCopyright © 2015. All Rights Reserved.