|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.ext.servlet.ServletContextHashModel
public final class ServletContextHashModel
TemplateHashModel wrapper for ServletContext
attributes.
Constructor Summary | |
---|---|
ServletContextHashModel(javax.servlet.ServletContext servletctx)
Construct a new ServletContextHashModel. |
Method Summary | |
---|---|
TemplateModel |
get(java.lang.String key)
Retrieve an attribute from the servlet context. |
boolean |
isEmpty()
Do we have any attributes in the servlet context? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletContextHashModel(javax.servlet.ServletContext servletctx)
servletctx
- the servlet request 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 |