|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.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 adapted| Method Detail |
|---|
public TemplateModel get(java.lang.String key)
get in interface TemplateHashModelkey - the name of the attribute to be retrieved
TemplateModel wrapping the value we're interested inpublic boolean isEmpty()
isEmpty in interface TemplateModeltrue if there are no attributes, otherwise false
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||