Class SlingIncludeAttributeTagProcessor
java.lang.Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.element.AbstractElementTagProcessor
org.thymeleaf.processor.element.AbstractAttributeTagProcessor
org.apache.sling.scripting.thymeleaf.internal.processor.SlingIncludeAttributeTagProcessor
- All Implemented Interfaces:
org.thymeleaf.processor.element.IElementProcessor,org.thymeleaf.processor.element.IElementTagProcessor,org.thymeleaf.processor.IProcessor
public class SlingIncludeAttributeTagProcessor
extends org.thymeleaf.processor.element.AbstractAttributeTagProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringdispatch(Resource resource, String path, SlingHttpServletRequest slingHttpServletRequest, SlingHttpServletResponse slingHttpServletResponse, RequestDispatcherOptions requestDispatcherOptions) protected voiddoProcess(org.thymeleaf.context.ITemplateContext templateContext, org.thymeleaf.model.IProcessableElementTag processableElementTag, org.thymeleaf.engine.AttributeName attributeName, String attributeValue, org.thymeleaf.processor.element.IElementTagStructureHandler elementTagStructureHandler) protected ObjectparseAttribute(org.thymeleaf.standard.expression.IStandardExpressionParser expressionParser, org.thymeleaf.context.ITemplateContext templateContext, org.thymeleaf.model.IProcessableElementTag processableElementTag, org.thymeleaf.processor.element.IElementTagStructureHandler elementTagStructureHandler, String name) protected RequestDispatcherOptionsprepareRequestDispatcherOptions(org.thymeleaf.standard.expression.IStandardExpressionParser expressionParser, org.thymeleaf.context.ITemplateContext templateContext, org.thymeleaf.model.IProcessableElementTag processableElementTag, org.thymeleaf.processor.element.IElementTagStructureHandler elementTagStructureHandler) Methods inherited from class org.thymeleaf.processor.element.AbstractAttributeTagProcessor
doProcessMethods inherited from class org.thymeleaf.processor.element.AbstractElementTagProcessor
getDialectPrefix, getMatchingAttributeName, getMatchingElementName, processMethods inherited from class org.thymeleaf.processor.AbstractProcessor
getPrecedence, getTemplateModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.thymeleaf.processor.IProcessor
getPrecedence, getTemplateMode
-
Field Details
-
ATTRIBUTE_PRECEDENCE
public static final int ATTRIBUTE_PRECEDENCE- See Also:
-
ATTRIBUTE_NAME
- See Also:
-
ADD_SELECTORS_ATTRIBUTE_NAME
- See Also:
-
REPLACE_SELECTORS_ATTRIBUTE_NAME
- See Also:
-
REPLACE_SUFFIX_ATTRIBUTE_NAME
- See Also:
-
RESOURCE_TYPE_ATTRIBUTE_NAME
- See Also:
-
UNWRAP_ATTRIBUTE_NAME
- See Also:
-
-
Constructor Details
-
SlingIncludeAttributeTagProcessor
-
-
Method Details
-
doProcess
protected void doProcess(org.thymeleaf.context.ITemplateContext templateContext, org.thymeleaf.model.IProcessableElementTag processableElementTag, org.thymeleaf.engine.AttributeName attributeName, String attributeValue, org.thymeleaf.processor.element.IElementTagStructureHandler elementTagStructureHandler) - Specified by:
doProcessin classorg.thymeleaf.processor.element.AbstractAttributeTagProcessor
-
parseAttribute
protected Object parseAttribute(org.thymeleaf.standard.expression.IStandardExpressionParser expressionParser, org.thymeleaf.context.ITemplateContext templateContext, org.thymeleaf.model.IProcessableElementTag processableElementTag, org.thymeleaf.processor.element.IElementTagStructureHandler elementTagStructureHandler, String name) -
prepareRequestDispatcherOptions
protected RequestDispatcherOptions prepareRequestDispatcherOptions(org.thymeleaf.standard.expression.IStandardExpressionParser expressionParser, org.thymeleaf.context.ITemplateContext templateContext, org.thymeleaf.model.IProcessableElementTag processableElementTag, org.thymeleaf.processor.element.IElementTagStructureHandler elementTagStructureHandler) -
dispatch
protected String dispatch(Resource resource, String path, SlingHttpServletRequest slingHttpServletRequest, SlingHttpServletResponse slingHttpServletResponse, RequestDispatcherOptions requestDispatcherOptions) - Parameters:
resource- the resource to includepath- the path to includeslingHttpServletRequest- the current requestslingHttpServletResponse- the current responserequestDispatcherOptions- the options for the request dispatcher- Returns:
- the character response from the include call to request dispatcher
- See Also:
-
- "org.apache.sling.scripting.jsp.taglib.IncludeTagHandler"
-