|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.web.template.HttpServletRequestTm
public class HttpServletRequestTm
Template model for HttpServletRequest.
Field Summary |
---|
Fields inherited from interface freemarker.template.TemplateModel |
---|
NOTHING |
Constructor Summary | |
---|---|
HttpServletRequestTm()
Default constructor |
|
HttpServletRequestTm(javax.servlet.http.HttpServletRequest request,
freemarker.template.ObjectWrapper wrapper)
Construct a TemplateModel with the given HttpServletRequest. |
Method Summary | |
---|---|
freemarker.template.TemplateModel |
get(java.lang.String name)
Returns a TemplateModel instance from the member request. |
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 HttpServletRequestTm()
public HttpServletRequestTm(javax.servlet.http.HttpServletRequest request, freemarker.template.ObjectWrapper wrapper)
request
- HTTP request.wrapper
- ObjectWrapper to use.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 request attribute or paramater in a suitable TemplateModel.
get
in interface freemarker.template.TemplateHashModel
name
- Request attribute or parameter name.
freemarker.template.TemplateModelException
- if the request attribute or parameter
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 |