|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.web.template.ServletContextTm
public class ServletContextTm
Template model for ServletContext.
| Field Summary |
|---|
| Fields inherited from interface freemarker.template.TemplateModel |
|---|
NOTHING |
| Constructor Summary | |
|---|---|
ServletContextTm()
Default constructor |
|
ServletContextTm(javax.servlet.ServletContext context,
freemarker.template.ObjectWrapper wrapper)
Construct a TemplateModel with the given ServletContext. |
|
| Method Summary | |
|---|---|
freemarker.template.TemplateModel |
get(java.lang.String name)
Returns a TemplateModel instance from the member context. |
boolean |
isEmpty()
Check to see if member context has any attributes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletContextTm()
public ServletContextTm(javax.servlet.ServletContext context,
freemarker.template.ObjectWrapper wrapper)
context - HTTP context.wrapper - ObjectWrapper| Method 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 context attribute in a suitable TemplateModel.
get in interface freemarker.template.TemplateHashModelname - Session attribute name.
freemarker.template.TemplateModelException - if the context cannot be wrapped.
public boolean isEmpty()
throws freemarker.template.TemplateModelException
isEmpty in interface freemarker.template.TemplateHashModelfreemarker.template.TemplateModelException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||