public class IncludeDirective extends Object implements freemarker.template.TemplateDirectiveModel
Constructor and Description |
---|
IncludeDirective() |
Modifier and Type | Method and Description |
---|---|
protected String |
dispatch(org.apache.sling.api.resource.Resource resource,
String path,
org.apache.sling.api.SlingHttpServletRequest slingHttpServletRequest,
org.apache.sling.api.SlingHttpServletResponse slingHttpServletResponse,
org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions) |
void |
execute(freemarker.core.Environment environment,
Map parameters,
freemarker.template.TemplateModel[] loopVars,
freemarker.template.TemplateDirectiveBody body) |
protected org.apache.sling.api.request.RequestDispatcherOptions |
prepareRequestDispatcherOptions(Map params) |
protected <T> T |
unwrapParameter(String name,
Map params,
Class<T> type) |
public void execute(freemarker.core.Environment environment, Map parameters, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException
execute
in interface freemarker.template.TemplateDirectiveModel
freemarker.template.TemplateException
IOException
protected <T> T unwrapParameter(String name, Map params, Class<T> type) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
protected org.apache.sling.api.request.RequestDispatcherOptions prepareRequestDispatcherOptions(Map params) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
protected String dispatch(org.apache.sling.api.resource.Resource resource, String path, org.apache.sling.api.SlingHttpServletRequest slingHttpServletRequest, org.apache.sling.api.SlingHttpServletResponse slingHttpServletResponse, org.apache.sling.api.request.RequestDispatcherOptions requestDispatcherOptions)
resource
- the resource to includepath
- the path to includeslingHttpServletRequest
- the current requestslingHttpServletResponse
- the current responserequestDispatcherOptions
- the options for the request dispatcherCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.