|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfreemarker.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 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 | ||||||||