Package org.thymeleaf.engine
Class ProcessorTemplateHandler
- Object
-
- org.thymeleaf.engine.ProcessorTemplateHandler
-
- All Implemented Interfaces:
ITemplateHandler
public final class ProcessorTemplateHandler extends Object implements 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 Constructor Description ProcessorTemplateHandler()
Creates a new instance of this handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleCDATASection(ICDATASection icdataSection)
void
handleCloseElement(ICloseElementTag icloseElementTag)
void
handleComment(IComment icomment)
void
handleDocType(IDocType idocType)
void
handleOpenElement(IOpenElementTag iopenElementTag)
void
handlePending()
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)
-
-
-
Method Detail
-
setNext
public void setNext(ITemplateHandler next)
- Specified by:
setNext
in interfaceITemplateHandler
-
setContext
public void setContext(ITemplateContext context)
- Specified by:
setContext
in interfaceITemplateHandler
-
setFlowController
public void setFlowController(org.thymeleaf.engine.TemplateFlowController flowController)
-
handleTemplateStart
public void handleTemplateStart(ITemplateStart itemplateStart)
- Specified by:
handleTemplateStart
in interfaceITemplateHandler
-
handleTemplateEnd
public void handleTemplateEnd(ITemplateEnd itemplateEnd)
- Specified by:
handleTemplateEnd
in interfaceITemplateHandler
-
handleText
public void handleText(IText itext)
- Specified by:
handleText
in interfaceITemplateHandler
-
handleComment
public void handleComment(IComment icomment)
- Specified by:
handleComment
in interfaceITemplateHandler
-
handleCDATASection
public void handleCDATASection(ICDATASection icdataSection)
- Specified by:
handleCDATASection
in interfaceITemplateHandler
-
handleStandaloneElement
public void handleStandaloneElement(IStandaloneElementTag istandaloneElementTag)
- Specified by:
handleStandaloneElement
in interfaceITemplateHandler
-
handleOpenElement
public void handleOpenElement(IOpenElementTag iopenElementTag)
- Specified by:
handleOpenElement
in interfaceITemplateHandler
-
handleCloseElement
public void handleCloseElement(ICloseElementTag icloseElementTag)
- Specified by:
handleCloseElement
in interfaceITemplateHandler
-
handleDocType
public void handleDocType(IDocType idocType)
- Specified by:
handleDocType
in interfaceITemplateHandler
-
handleXMLDeclaration
public void handleXMLDeclaration(IXMLDeclaration ixmlDeclaration)
- Specified by:
handleXMLDeclaration
in interfaceITemplateHandler
-
handleProcessingInstruction
public void handleProcessingInstruction(IProcessingInstruction iprocessingInstruction)
- 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.
-
-