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.
| 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 ITemplateHandlerpublic void setContext(ITemplateContext context)
setContext in interface ITemplateHandlerpublic void setFlowController(org.thymeleaf.engine.TemplateFlowController flowController)
public void handleTemplateStart(ITemplateStart itemplateStart)
handleTemplateStart in interface ITemplateHandlerpublic void handleTemplateEnd(ITemplateEnd itemplateEnd)
handleTemplateEnd in interface ITemplateHandlerpublic void handleText(IText itext)
handleText in interface ITemplateHandlerpublic void handleComment(IComment icomment)
handleComment in interface ITemplateHandlerpublic void handleCDATASection(ICDATASection icdataSection)
handleCDATASection in interface ITemplateHandlerpublic void handleStandaloneElement(IStandaloneElementTag istandaloneElementTag)
handleStandaloneElement in interface ITemplateHandlerpublic void handleOpenElement(IOpenElementTag iopenElementTag)
handleOpenElement in interface ITemplateHandlerpublic void handleCloseElement(ICloseElementTag icloseElementTag)
handleCloseElement in interface ITemplateHandlerpublic void handleDocType(IDocType idocType)
handleDocType in interface ITemplateHandlerpublic void handleXMLDeclaration(IXMLDeclaration ixmlDeclaration)
handleXMLDeclaration in interface ITemplateHandlerpublic void handleProcessingInstruction(IProcessingInstruction iprocessingInstruction)
handleProcessingInstruction in interface ITemplateHandlerpublic 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.