|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.web.template.HttpSessionTm
public class HttpSessionTm
Template model for HttpSession.
Field Summary |
---|
Fields inherited from interface freemarker.template.TemplateModel |
---|
NOTHING |
Constructor Summary | |
---|---|
HttpSessionTm()
Default constructor |
|
HttpSessionTm(javax.servlet.http.HttpSession session,
freemarker.template.ObjectWrapper wrapper)
Construct a TemplateModel with the given HttpSession. |
Method Summary | |
---|---|
freemarker.template.TemplateModel |
get(java.lang.String name)
Returns a TemplateModel instance from the member session. |
boolean |
isEmpty()
Check to see if member session has any attributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpSessionTm()
public HttpSessionTm(javax.servlet.http.HttpSession session, freemarker.template.ObjectWrapper wrapper)
session
- HTTP session.wrapper
- ObjectWrapperMethod Detail |
---|
public freemarker.template.TemplateModel get(java.lang.String name) throws freemarker.template.TemplateModelException
This method will attempt to wrap the value of the named session attribute in a suitable TemplateModel.
get
in interface freemarker.template.TemplateHashModel
name
- Session attribute name.
freemarker.template.TemplateModelException
- if the session cannot be wrapped.public boolean isEmpty() throws freemarker.template.TemplateModelException
isEmpty
in interface freemarker.template.TemplateHashModel
freemarker.template.TemplateModelException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |