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
ITemplateHandlers applied to a template for processing it.This handler actually executes all applicable
IProcessors 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 voidhandleCDATASection(ICDATASection icdataSection)voidhandleCloseElement(ICloseElementTag icloseElementTag)voidhandleComment(IComment icomment)voidhandleDocType(IDocType idocType)voidhandleOpenElement(IOpenElementTag iopenElementTag)voidhandlePending()Handle any processing that might have been left pending during its execution because of the process having been stopped during throttling.voidhandleProcessingInstruction(IProcessingInstruction iprocessingInstruction)voidhandleStandaloneElement(IStandaloneElementTag istandaloneElementTag)voidhandleTemplateEnd(ITemplateEnd itemplateEnd)voidhandleTemplateStart(ITemplateStart itemplateStart)voidhandleText(IText itext)voidhandleXMLDeclaration(IXMLDeclaration ixmlDeclaration)voidsetContext(ITemplateContext context)voidsetFlowController(org.thymeleaf.engine.TemplateFlowController flowController)voidsetNext(ITemplateHandler next)
-
-
-
Method Detail
-
setNext
public void setNext(ITemplateHandler next)
- Specified by:
setNextin interfaceITemplateHandler
-
setContext
public void setContext(ITemplateContext context)
- Specified by:
setContextin interfaceITemplateHandler
-
setFlowController
public void setFlowController(org.thymeleaf.engine.TemplateFlowController flowController)
-
handleTemplateStart
public void handleTemplateStart(ITemplateStart itemplateStart)
- Specified by:
handleTemplateStartin interfaceITemplateHandler
-
handleTemplateEnd
public void handleTemplateEnd(ITemplateEnd itemplateEnd)
- Specified by:
handleTemplateEndin interfaceITemplateHandler
-
handleText
public void handleText(IText itext)
- Specified by:
handleTextin interfaceITemplateHandler
-
handleComment
public void handleComment(IComment icomment)
- Specified by:
handleCommentin interfaceITemplateHandler
-
handleCDATASection
public void handleCDATASection(ICDATASection icdataSection)
- Specified by:
handleCDATASectionin interfaceITemplateHandler
-
handleStandaloneElement
public void handleStandaloneElement(IStandaloneElementTag istandaloneElementTag)
- Specified by:
handleStandaloneElementin interfaceITemplateHandler
-
handleOpenElement
public void handleOpenElement(IOpenElementTag iopenElementTag)
- Specified by:
handleOpenElementin interfaceITemplateHandler
-
handleCloseElement
public void handleCloseElement(ICloseElementTag icloseElementTag)
- Specified by:
handleCloseElementin interfaceITemplateHandler
-
handleDocType
public void handleDocType(IDocType idocType)
- Specified by:
handleDocTypein interfaceITemplateHandler
-
handleXMLDeclaration
public void handleXMLDeclaration(IXMLDeclaration ixmlDeclaration)
- Specified by:
handleXMLDeclarationin interfaceITemplateHandler
-
handleProcessingInstruction
public void handleProcessingInstruction(IProcessingInstruction iprocessingInstruction)
- Specified by:
handleProcessingInstructionin 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
IThrottledTemplateProcessorimplementations before actually letting any new events flow in from the parser or cache.
-
-