public class TemplateRendererUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
render(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String templateFile,
Map<String,Object> params)
Renders the defined template file to an end user.
|
static void |
render(javax.servlet.http.HttpServletResponse resp,
String templateFile,
Map<String,Object> params)
|
public static void render(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String templateFile,
Map<String,Object> params)
throws TemplateRendererUtilException
req - The HttpServletRequest associated with the current transaction.resp - The HttpServletResponse associated with the current transaction.templateFile - The filename of the template to render.params - A map of parameters that is passed into the selected template as variables.TemplateRendererUtilException - A general exception for any unexpected runtime errors that might occur during template rendering.@Deprecated public static void render(javax.servlet.http.HttpServletResponse resp, String templateFile, Map<String,Object> params) throws TemplateRendererUtilException
render(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.util.Map).null. As a result, information (such as the Tracking ID) from the HTTP request is not available and the Locale is set to English as the default.resp - The HttpServletResponse associated with the current transaction.templateFile - The filename of the template to render.params - A map of parameters that is passed into the selected template as variables.TemplateRendererUtilException - A general exception for any unexpected runtime errors that might occur during template rendering.Copyright 2019 Ping Identity Corp. All rights reserved.