Class ThymeleafServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.apache.juneau.rest.server.servlet.RestServlet
org.apache.juneau.rest.server.view.ViewServlet
org.apache.juneau.rest.server.view.thymeleaf.ThymeleafServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class ThymeleafServlet extends ViewServlet
Standalone servlet companion of the ThymeleafMixin mixin.

Mounts as a sibling top-level servlet at /thymeleaf/* and renders raw Thymeleaf templates by delegating to a shared ThymeleafDispatcher worker — the same flavor-neutral RawTemplateDispatcher implementation the mixin and child flavors hold, so the forms cannot drift.

Whereas the ThymeleafMixin mixin pins its op at /thymeleaf/* for composition into a host at /, this companion declares the mount at the class level (@Rest(paths="/thymeleaf/*")) and inherits the /* op from ViewServlet.

See Also:
Since:
10.0.0