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.
Constructor and Description |
---|
ProcessorTemplateHandler()
Creates a new instance of this handler.
|
Modifier and Type | Method and 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) |
public ProcessorTemplateHandler()
Creates a new instance of this handler.
public void setNext(ITemplateHandler next)
setNext
in interface ITemplateHandler
public void setContext(ITemplateContext context)
setContext
in interface ITemplateHandler
public void setFlowController(org.thymeleaf.engine.TemplateFlowController flowController)
public void handleTemplateStart(ITemplateStart itemplateStart)
handleTemplateStart
in interface ITemplateHandler
public void handleTemplateEnd(ITemplateEnd itemplateEnd)
handleTemplateEnd
in interface ITemplateHandler
public void handleText(IText itext)
handleText
in interface ITemplateHandler
public void handleComment(IComment icomment)
handleComment
in interface ITemplateHandler
public void handleCDATASection(ICDATASection icdataSection)
handleCDATASection
in interface ITemplateHandler
public void handleStandaloneElement(IStandaloneElementTag istandaloneElementTag)
handleStandaloneElement
in interface ITemplateHandler
public void handleOpenElement(IOpenElementTag iopenElementTag)
handleOpenElement
in interface ITemplateHandler
public void handleCloseElement(ICloseElementTag icloseElementTag)
handleCloseElement
in interface ITemplateHandler
public void handleDocType(IDocType idocType)
handleDocType
in interface ITemplateHandler
public void handleXMLDeclaration(IXMLDeclaration ixmlDeclaration)
handleXMLDeclaration
in interface ITemplateHandler
public void handleProcessingInstruction(IProcessingInstruction iprocessingInstruction)
handleProcessingInstruction
in interface ITemplateHandler
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.
Copyright © 2017 The THYMELEAF team. All rights reserved.