freemarker.ext.servlet
Class HttpSessionHashModel

java.lang.Object
  |
  +--freemarker.ext.servlet.HttpSessionHashModel
All Implemented Interfaces:
TemplateHashModel, TemplateModel

public final class HttpSessionHashModel
extends java.lang.Object
implements TemplateHashModel

TemplateHashModel wrapper for a HttpSession attributes.

Version:
1.0
Author:
Attila Szegedi, szegedia@freemail.hu

Constructor Summary
HttpSessionHashModel(javax.servlet.http.HttpSession session)
           
 
Method Summary
 TemplateModel get(java.lang.String key)
          Gets a TemplateModel from the hash.
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionHashModel

public HttpSessionHashModel(javax.servlet.http.HttpSession session)
Method Detail

get

public TemplateModel get(java.lang.String key)
Description copied from interface: TemplateHashModel
Gets a TemplateModel from the hash.
Specified by:
get in interface TemplateHashModel
Following copied from interface: freemarker.template.TemplateHashModel
Parameters:
key - the name by which the TemplateModel is identified in the template.
Returns:
the TemplateModel referred to by the key, or null if not found.

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface TemplateModel
Following copied from interface: freemarker.template.TemplateModel
Returns:
true if this object is empty.