public class ExecuteControllerDirective extends Object implements freemarker.template.TemplateDirectiveModel
Modifier and Type | Class and Description |
---|---|
static class |
ExecuteControllerDirective.EnvironmentGroovyBeanWrapper |
Modifier and Type | Field and Description |
---|---|
static String |
PATH_PARAM_NAME |
protected javax.servlet.ServletContext |
servletContext |
Constructor and Description |
---|
ExecuteControllerDirective() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
createScriptVariables(freemarker.core.Environment env) |
void |
execute(freemarker.core.Environment env,
Map params,
freemarker.template.TemplateModel[] loopVars,
freemarker.template.TemplateDirectiveBody body) |
protected void |
executeController(Script script,
Map<String,Object> variables,
freemarker.core.Environment env) |
protected void |
executeController(String path,
freemarker.core.Environment env) |
protected SiteItem |
getContentModel(freemarker.core.Environment env) |
protected String |
getPath(freemarker.template.TemplateModel pathParam,
freemarker.core.Environment env) |
protected Object |
getTemplateModel(freemarker.core.Environment env) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
public static final String PATH_PARAM_NAME
protected javax.servlet.ServletContext servletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException
execute
in interface freemarker.template.TemplateDirectiveModel
freemarker.template.TemplateException
IOException
protected void executeController(String path, freemarker.core.Environment env) throws freemarker.template.TemplateException
freemarker.template.TemplateException
protected void executeController(Script script, Map<String,Object> variables, freemarker.core.Environment env) throws freemarker.template.TemplateException
freemarker.template.TemplateException
protected Map<String,Object> createScriptVariables(freemarker.core.Environment env) throws freemarker.template.TemplateException
freemarker.template.TemplateException
protected String getPath(freemarker.template.TemplateModel pathParam, freemarker.core.Environment env) throws freemarker.template.TemplateException
freemarker.template.TemplateException
protected SiteItem getContentModel(freemarker.core.Environment env) throws freemarker.template.TemplateException
freemarker.template.TemplateException
protected Object getTemplateModel(freemarker.core.Environment env) throws freemarker.template.TemplateException
freemarker.template.TemplateException
Copyright © 2023 CrafterCMS. All rights reserved.