Class FreemarkerAutotagRuntime
java.lang.Object
org.apache.tiles.request.freemarker.autotag.FreemarkerAutotagRuntime
- All Implemented Interfaces:
- freemarker.template.TemplateDirectiveModel,- freemarker.template.TemplateModel,- AutotagRuntime<Request>
public class FreemarkerAutotagRuntime
extends Object
implements AutotagRuntime<Request>, freemarker.template.TemplateDirectiveModel
A Runtime for implementing a Freemarker Template Directive.
- 
Field SummaryFields inherited from interface freemarker.template.TemplateModelNOTHING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreates a new ModelBody instance to match the request.Creates a new Request instance.voidexecute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) <T> TgetParameter(String name, Class<T> type, T defaultValue) Extracts a parameter from the tag.
- 
Constructor Details- 
FreemarkerAutotagRuntimepublic FreemarkerAutotagRuntime()
 
- 
- 
Method Details- 
executepublic void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) - Specified by:
- executein interface- freemarker.template.TemplateDirectiveModel
 
- 
createRequestCreates a new Request instance.- Specified by:
- createRequestin interface- AutotagRuntime<Request>
- Returns:
- The Request.
 
- 
createModelBodyCreates a new ModelBody instance to match the request.- Specified by:
- createModelBodyin interface- AutotagRuntime<Request>
- Returns:
- The ModelBody.
 
- 
getParameterExtracts a parameter from the tag.- Specified by:
- getParameterin interface- AutotagRuntime<Request>
- Parameters:
- name- The name of the parameter.
- defaultValue- The default value if none is specified.
- Returns:
- The value of the parameter.
 
 
-