|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.ext.servlet.HttpSessionHashModel
public final class HttpSessionHashModel
TemplateHashModel wrapper for HttpSession
attributes.
Constructor Summary | |
---|---|
HttpSessionHashModel(javax.servlet.http.HttpSession session)
Construct a new HttpSessionHashModel. |
Method Summary | |
---|---|
TemplateModel |
get(java.lang.String key)
Retrieve an attribute from the servlet session. |
boolean |
isEmpty()
Do we have any attributes in the session? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpSessionHashModel(javax.servlet.http.HttpSession session)
session
- the servlet session to be adaptedMethod Detail |
---|
public TemplateModel get(java.lang.String key)
get
in interface TemplateHashModel
key
- the name of the attribute to be retrieved
TemplateModel
wrapping the value we're interested inpublic boolean isEmpty()
isEmpty
in interface TemplateModel
true
if there are no attributes, otherwise false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |