Class TemplateRendererUtil

java.lang.Object
com.pingidentity.sdk.template.TemplateRendererUtil

public class TemplateRendererUtil extends Object
Utility class used to render HTML templates to end users during runtime processing. For example, this class can be used to display a login form to an end user during an SSO transaction.
Since:
7.1 R2
  • Method Details

    • render

      public static void render(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String templateFile, Map<String,Object> params) throws TemplateRendererUtilException
      Renders the defined template file to an end user.
      Parameters:
      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. PingFederate will add a set of standard parameters to this map as well. If the plugin provides a standard parameter in the map already, the value provided by the plugin will be used.
      Throws:
      TemplateRendererUtilException - A general exception for any unexpected runtime errors that might occur during template rendering.
    • render

      @Deprecated public static void render(javax.servlet.http.HttpServletResponse resp, String templateFile, Map<String,Object> params) throws TemplateRendererUtilException
      Renders the defined template file to an end user.

      The HttpServletRequest is set to 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.

      Parameters:
      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. PingFederate will add a set of standard parameters to this map as well. If the plugin provides a standard parameter in the map already, the value provided by the plugin will be used.
      Throws:
      TemplateRendererUtilException - A general exception for any unexpected runtime errors that might occur during template rendering.