|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.ext.servlet.HttpRequestParametersHashModel
public class HttpRequestParametersHashModel
TemplateHashModel wrapper for HttpServletRequest
parameters.
Constructor Summary | |
---|---|
HttpRequestParametersHashModel(javax.servlet.http.HttpServletRequest request)
Construct a new HttpRequestParameterHashModel. |
Method Summary | |
---|---|
TemplateModel |
get(java.lang.String key)
Retrieve a TemplateModel corresponding to the given request variable |
boolean |
isEmpty()
Do we have any items in the request? |
protected java.lang.String |
transcode(java.lang.String string)
A hook for allowing String s to be transformed before being
passed into the TemplateModel . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpRequestParametersHashModel(javax.servlet.http.HttpServletRequest request)
request
- the servlet request to be adaptedMethod Detail |
---|
public TemplateModel get(java.lang.String key)
get
in interface TemplateHashModel
key
- the name of the request variable to be returned
TemplateModel
of any occurrences
of the variable in the request.public boolean isEmpty()
isEmpty
in interface TemplateModel
true
if the request is empty, otherwise false
protected java.lang.String transcode(java.lang.String string)
String
s to be transformed before being
passed into the TemplateModel
.
string
- the String
to be transcoded
String
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |