public class HstFreemarkerServlet
extends freemarker.ext.servlet.FreemarkerServlet
Constructor and Description |
---|
HstFreemarkerServlet() |
Modifier and Type | Method and Description |
---|---|
protected freemarker.template.TemplateModel |
createModel(freemarker.template.ObjectWrapper wrapper,
javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
destroy() |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected boolean |
hasInitParameter(String paramName) |
void |
init() |
protected String |
requestUrlToTemplatePath(javax.servlet.http.HttpServletRequest request)
Special dispatch info is included when the request contains the attribute
ContainerConstants.DISPATCH_URI_SCHEME . |
createConfiguration, createObjectWrapper, createRequestParametersHashModel, createTemplateLoader, deduceLocale, doPost, getConfiguration, getObjectWrapper, getTemplatePath, initializeServletContext, initializeSession, postTemplateProcess, preprocessRequest, preTemplateProcess
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init() throws javax.servlet.ServletException
init
in class freemarker.ext.servlet.FreemarkerServlet
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class freemarker.ext.servlet.FreemarkerServlet
javax.servlet.ServletException
IOException
protected String requestUrlToTemplatePath(javax.servlet.http.HttpServletRequest request)
ContainerConstants.DISPATCH_URI_SCHEME
. For example
this value is 'classpath' or 'jcr' to load a template from a classpath or repositoryrequestUrlToTemplatePath
in class freemarker.ext.servlet.FreemarkerServlet
protected freemarker.template.TemplateModel createModel(freemarker.template.ObjectWrapper wrapper, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws freemarker.template.TemplateModelException
createModel
in class freemarker.ext.servlet.FreemarkerServlet
freemarker.template.TemplateModelException
protected boolean hasInitParameter(String paramName)
Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.