Class ThymeleafHstTemplateServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.onehippo.forge.templating.support.core.servlet.AbstractHstTemplateServlet
org.onehippo.forge.templating.support.thymeleaf.servlet.ThymeleafHstTemplateServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class ThymeleafHstTemplateServlet extends AbstractHstTemplateServlet
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.onehippo.forge.templating.support.core.servlet.AbstractHstTemplateServlet

    CLASSPATH_TEMPLATE_PROTOCOL, serialVersionUID, WEB_FILE_TEMPLATE_PROTOCOL

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Clear the template cache if available in the subclass.
    protected Object
    createTemplateContext(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Create a templating engine specific Context object which can be evaluated by the template.
    protected void
    initializeTemplateEngine(jakarta.servlet.ServletConfig config)
    Initialize the specific templating engine in a subclass.
    protected void
    processTemplate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String templatePath, Object context)
    Resolve the template by the templatePath and process the template for the request with the templating engine specific context object.

    Methods inherited from class org.onehippo.forge.templating.support.core.servlet.AbstractHstTemplateServlet

    doGet, doPost, getTemplatePath, init

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait