Home » freemarker-2.3.13 » freemarker.ext.servlet » [javadoc | source]
freemarker.ext.servlet
public final class: HttpSessionHashModel [javadoc | source]
java.lang.Object
   freemarker.ext.servlet.HttpSessionHashModel

All Implemented Interfaces:
    TemplateHashModel, Serializable

TemplateHashModel wrapper for a HttpSession attributes.
Constructor:
 public HttpSessionHashModel(HttpSession session,
    ObjectWrapper wrapper) 
    Use this constructor when the session already exists.
    Parameters:
    session - the session
    wrapper - an object wrapper used to wrap session attributes
 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.
    Parameters:
    servlet - the FreemarkerServlet that created this model. If the model is not created through FreemarkerServlet, leave this argument as null.
    request - the actual request
    response - the actual response
    wrapper - an object wrapper used to wrap session attributes
Method from freemarker.ext.servlet.HttpSessionHashModel Summary:
get,   isEmpty,   isZombie
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from freemarker.ext.servlet.HttpSessionHashModel Detail:
 public TemplateModel get(String key) throws TemplateModelException 
 public boolean isEmpty() throws TemplateModelException 
 boolean isZombie()