Class FreemarkerServlet

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.freemarker.FreemarkerServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class FreemarkerServlet extends ViewServlet
Standalone servlet companion of the FreemarkerMixin mixin.

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

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

See Also:
Since:
10.0.0