Class OAuth2ClientIdTemplateEngine

java.lang.Object
com.broadleafcommerce.auth.user.web.engine.OAuth2ClientIdTemplateEngine
All Implemented Interfaces:
org.thymeleaf.ITemplateEngine, org.thymeleaf.spring5.ISpringTemplateEngine

public class OAuth2ClientIdTemplateEngine extends Object implements org.thymeleaf.spring5.ISpringTemplateEngine
The sole purpose of this Template Engine is to add the current request's `client_id` param to the `resolutionAttributes` of the TemplateSpec. This allows us to automatically cache any returned templates based on the request's client id. The OAuth2ClientTemplateResolver uses this map to determine if a client specific template exists.
  • Constructor Details

    • OAuth2ClientIdTemplateEngine

      public OAuth2ClientIdTemplateEngine(org.thymeleaf.spring5.SpringTemplateEngine delegate)
  • Method Details

    • process

      public void process(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context, Writer writer)
      Specified by:
      process in interface org.thymeleaf.ITemplateEngine
    • processThrottled

      public org.thymeleaf.IThrottledTemplateProcessor processThrottled(String template, org.thymeleaf.context.IContext context)
      Specified by:
      processThrottled in interface org.thymeleaf.ITemplateEngine
    • processThrottled

      public org.thymeleaf.IThrottledTemplateProcessor processThrottled(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context)
      Specified by:
      processThrottled in interface org.thymeleaf.ITemplateEngine
    • processThrottled

      public org.thymeleaf.IThrottledTemplateProcessor processThrottled(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context)
      Specified by:
      processThrottled in interface org.thymeleaf.ITemplateEngine
    • getConfiguration

      public org.thymeleaf.IEngineConfiguration getConfiguration()
      Specified by:
      getConfiguration in interface org.thymeleaf.ITemplateEngine
    • process

      public String process(String template, org.thymeleaf.context.IContext context)
      Specified by:
      process in interface org.thymeleaf.ITemplateEngine
    • process

      public String process(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context)
      Specified by:
      process in interface org.thymeleaf.ITemplateEngine
    • process

      public String process(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context)
      Specified by:
      process in interface org.thymeleaf.ITemplateEngine
    • process

      public void process(String template, org.thymeleaf.context.IContext context, Writer writer)
      Specified by:
      process in interface org.thymeleaf.ITemplateEngine
    • process

      public void process(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context, Writer writer)
      Specified by:
      process in interface org.thymeleaf.ITemplateEngine
    • setTemplateEngineMessageSource

      public void setTemplateEngineMessageSource(org.springframework.context.MessageSource templateEngineMessageSource)
      Specified by:
      setTemplateEngineMessageSource in interface org.thymeleaf.spring5.ISpringTemplateEngine