freemarker.ext.servlet
Class HttpSessionHashModel
java.lang.Object
freemarker.ext.servlet.HttpSessionHashModel
- Serializable, TemplateHashModel, TemplateModel
public final class HttpSessionHashModel
extends java.lang.Object
TemplateHashModel wrapper for a HttpSession attributes.
$Id: HttpSessionHashModel.java,v 1.14.4.1 2006/04/19 16:16:43 szegedia Exp $
HttpSessionHashModel
public HttpSessionHashModel(HttpSession session,
ObjectWrapper wrapper)
Use this constructor when the session already exists.
session
- the sessionwrapper
- an object wrapper used to wrap session attributes
HttpSessionHashModel
public HttpSessionHashModel(FreemarkerServlet servlet,
HttpServletRequest request,
HttpServletResponse response,
ObjectWrapper wrapper)
Use this constructor when the session isn't already created. It is passed
enough parameters so that the session can be properly initialized after
it is detected that it was created.
servlet
- the FreemarkerServlet that created this model. If the
model is not created through FreemarkerServlet, leave this argument as
null.request
- the actual requestresponse
- the actual responsewrapper
- an object wrapper used to wrap session attributes