Class HttpRequestHashModel

java.lang.Object
freemarker.ext.jakarta.servlet.HttpRequestHashModel
All Implemented Interfaces:
TemplateHashModel, TemplateHashModelEx, TemplateModel

public final class HttpRequestHashModel extends Object implements TemplateHashModelEx
TemplateHashModel wrapper for a HttpServletRequest attributes.

Note that this is for the legacy "javax" Servlet/JSP API; for Jakarta (that is, in modern Servlet containers), use freemarker.ext.jakarta.servlet.HttpRequestHashModel instead (since 2.3.33).

  • Constructor Details

    • HttpRequestHashModel

      public HttpRequestHashModel(jakarta.servlet.http.HttpServletRequest request, ObjectWrapper wrapper)
      Parameters:
      wrapper - Should be an ObjectWrapperAndUnwrapper, or else some features might won't work properly. (It's declared as ObjectWrapper only for backward compatibility.)
    • HttpRequestHashModel

      public HttpRequestHashModel(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, ObjectWrapper wrapper)
  • Method Details