Package org.thymeleaf.engine
Class ProcessorTemplateHandler
Object
org.thymeleaf.engine.ProcessorTemplateHandler
- All Implemented Interfaces:
ITemplateHandler
Basic, most fundamental processor in the chain of ITemplateHandler
s applied to a template for
processing it.
This handler actually executes all applicable IProcessor
s to each of the
template events, resulting in the processing of the template.
All pre-processors apply before this handler, and all post-processors apply afterwards.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleCDATASection
(ICDATASection icdataSection) void
handleCloseElement
(ICloseElementTag icloseElementTag) void
handleComment
(IComment icomment) void
handleDocType
(IDocType idocType) void
handleOpenElement
(IOpenElementTag iopenElementTag) void
Handle any processing that might have been left pending during its execution because of the process having been stopped during throttling.void
handleProcessingInstruction
(IProcessingInstruction iprocessingInstruction) void
handleStandaloneElement
(IStandaloneElementTag istandaloneElementTag) void
handleTemplateEnd
(ITemplateEnd itemplateEnd) void
handleTemplateStart
(ITemplateStart itemplateStart) void
handleText
(IText itext) void
handleXMLDeclaration
(IXMLDeclaration ixmlDeclaration) void
setContext
(ITemplateContext context) void
setFlowController
(org.thymeleaf.engine.TemplateFlowController flowController) void
setNext
(ITemplateHandler next)
-
Constructor Details
-
ProcessorTemplateHandler
public ProcessorTemplateHandler()Creates a new instance of this handler.
-
-
Method Details
-
setNext
- Specified by:
setNext
in interfaceITemplateHandler
-
setContext
- Specified by:
setContext
in interfaceITemplateHandler
-
setFlowController
public void setFlowController(org.thymeleaf.engine.TemplateFlowController flowController) -
handleTemplateStart
- Specified by:
handleTemplateStart
in interfaceITemplateHandler
-
handleTemplateEnd
- Specified by:
handleTemplateEnd
in interfaceITemplateHandler
-
handleText
- Specified by:
handleText
in interfaceITemplateHandler
-
handleComment
- Specified by:
handleComment
in interfaceITemplateHandler
-
handleCDATASection
- Specified by:
handleCDATASection
in interfaceITemplateHandler
-
handleStandaloneElement
- Specified by:
handleStandaloneElement
in interfaceITemplateHandler
-
handleOpenElement
- Specified by:
handleOpenElement
in interfaceITemplateHandler
-
handleCloseElement
- Specified by:
handleCloseElement
in interfaceITemplateHandler
-
handleDocType
- Specified by:
handleDocType
in interfaceITemplateHandler
-
handleXMLDeclaration
- Specified by:
handleXMLDeclaration
in interfaceITemplateHandler
-
handleProcessingInstruction
- Specified by:
handleProcessingInstruction
in interfaceITemplateHandler
-
handlePending
public void handlePending()Handle any processing that might have been left pending during its execution because of the process having been stopped during throttling.
This method is only for internal use, and will be called by the
IThrottledTemplateProcessor
implementations before actually letting any new events flow in from the parser or cache.
-