public class HstFreemarkerServlet
extends freemarker.ext.servlet.FreemarkerServlet
Modifier and Type | Field and Description |
---|---|
static String |
INIT_PARAM_LOGGER_LIBRARY
Deprecated.
HSTTWO-3723: no longer functional and ignored servlet/context init parameter
|
debug, INIT_PARAM_BUFFER_SIZE, INIT_PARAM_CLASSPATH_TLDS, INIT_PARAM_CONTENT_TYPE, INIT_PARAM_EXCEPTION_ON_MISSING_TEMPLATE, INIT_PARAM_META_INF_TLD_LOCATIONS, INIT_PARAM_NO_CACHE, INIT_PARAM_OVERRIDE_RESPONSE_CONTENT_TYPE, INIT_PARAM_OVERRIDE_RESPONSE_LOCALE, INIT_PARAM_RESPONSE_CHARACTER_ENCODING, INIT_PARAM_TEMPLATE_PATH, INIT_PARAM_VALUE_ALWAYS, INIT_PARAM_VALUE_DO_NOT_SET, INIT_PARAM_VALUE_FORCE_PREFIX, INIT_PARAM_VALUE_FROM_TEMPLATE, INIT_PARAM_VALUE_LEGACY, INIT_PARAM_VALUE_NEVER, INIT_PARAM_VALUE_WHEN_TEMPLATE_HAS_MIME_TYPE, KEY_APPLICATION, KEY_APPLICATION_PRIVATE, KEY_INCLUDE, KEY_JSP_TAGLIBS, KEY_REQUEST, KEY_REQUEST_PARAMETERS, KEY_REQUEST_PRIVATE, KEY_SESSION, META_INF_TLD_LOCATION_CLASSPATH, META_INF_TLD_LOCATION_CLEAR, META_INF_TLD_LOCATION_WEB_INF_PER_LIB_JARS, SYSTEM_PROPERTY_CLASSPATH_TLDS, SYSTEM_PROPERTY_META_INF_TLD_SOURCES
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) |
protected freemarker.cache.TemplateLoader |
createTemplateLoader(String templatePath)
Overrides
FreemarkerServlet.createTemplateLoader(String) in order to use MultiTemplateLoader
instead which cascades HstClassTemplateLoader and JcrTemplateLoader
until it finds a template by the templatePath . |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected boolean |
hasInitParameter(String paramName) |
void |
init(javax.servlet.ServletConfig config) |
protected String |
requestUrlToTemplatePath(javax.servlet.http.HttpServletRequest request)
Special dispatch info is included when the request contains the attribute
ContainerConstants.DISPATCH_URI_PROTOCOL . |
createConfiguration, createDefaultClassPathTlds, createDefaultMetaInfTldSources, createDefaultObjectWrapper, createObjectWrapper, createRequestParametersHashModel, createTaglibFactory, deduceLocale, doPost, getConfiguration, getDefaultOverrideResponseContentType, getObjectWrapper, getTemplatePath, init, initializeServletContext, initializeSession, postTemplateProcess, preprocessRequest, preTemplateProcess, processEnvironment, setConfigurationDefaults
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
@Deprecated public static final String INIT_PARAM_LOGGER_LIBRARY
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
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) throws javax.servlet.ServletException
ContainerConstants.DISPATCH_URI_PROTOCOL
. For example this value is 'classpath:' or 'jcr:' or 'webfile:' to
load a template from a classpath or repositoryrequestUrlToTemplatePath
in class freemarker.ext.servlet.FreemarkerServlet
javax.servlet.ServletException
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)
protected freemarker.cache.TemplateLoader createTemplateLoader(String templatePath) throws IOException
FreemarkerServlet.createTemplateLoader(String)
in order to use MultiTemplateLoader
instead which cascades HstClassTemplateLoader
and JcrTemplateLoader
until it finds a template by the templatePath
.createTemplateLoader
in class freemarker.ext.servlet.FreemarkerServlet
IOException
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.