org.liquidsite.app.template
Class RequestBean.RequestParameterBean

java.lang.Object
  extended byorg.liquidsite.app.template.RequestBean.RequestParameterBean
All Implemented Interfaces:
freemarker.template.TemplateHashModel, freemarker.template.TemplateModel
Enclosing class:
RequestBean

public class RequestBean.RequestParameterBean
extends java.lang.Object
implements freemarker.template.TemplateHashModel

A request parameter bean. This bean exposes all the request parameters as a template hash model with the parameter names a keys, and their values always returned as strings.


Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Method Summary
 freemarker.template.TemplateModel get(java.lang.String name)
          Returns a parameter value.
 boolean isEmpty()
          Checks if the parameter hash model is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEmpty

public boolean isEmpty()
Checks if the parameter hash model is empty.

Specified by:
isEmpty in interface freemarker.template.TemplateHashModel
Returns:
this method always returns false

get

public freemarker.template.TemplateModel get(java.lang.String name)
Returns a parameter value. If the parameter didn't exist, a null template model will be returned. Existing parameter values will be returned as scalars.

Specified by:
get in interface freemarker.template.TemplateHashModel
Parameters:
name - the parameter name
Returns:
the template model for the value, or null if the parameter didn't exist