public class FreemarkerAutotagRuntime extends Object implements AutotagRuntime<Request>, freemarker.template.TemplateDirectiveModel
Constructor and Description |
---|
FreemarkerAutotagRuntime() |
Modifier and Type | Method and Description |
---|---|
ModelBody |
createModelBody()
Creates a new ModelBody instance to match the request.
|
Request |
createRequest()
Creates a new Request instance.
|
void |
execute(freemarker.core.Environment env,
Map params,
freemarker.template.TemplateModel[] loopVars,
freemarker.template.TemplateDirectiveBody body) |
<T> T |
getParameter(String name,
Class<T> type,
T defaultValue)
Extracts a parameter from the tag.
|
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body)
execute
in interface freemarker.template.TemplateDirectiveModel
public Request createRequest()
createRequest
in interface AutotagRuntime<Request>
public ModelBody createModelBody()
createModelBody
in interface AutotagRuntime<Request>
public <T> T getParameter(String name, Class<T> type, T defaultValue)
getParameter
in interface AutotagRuntime<Request>
name
- The name of the parameter.defaultValue
- The default value if none is specified.Copyright © 2000–2024 Apache Software Foundation. All rights reserved.