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 theTemplateSpec. This allows us to automatically cache any returned templates based on the request's client id. TheOAuth2ClientTemplateResolveruses this map to determine if a client specific template exists.
-
-
Constructor Summary
Constructors Constructor Description OAuth2ClientIdTemplateEngine(org.thymeleaf.spring5.SpringTemplateEngine delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.thymeleaf.IEngineConfigurationgetConfiguration()Stringprocess(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context)voidprocess(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context, Writer writer)Stringprocess(String template, org.thymeleaf.context.IContext context)voidprocess(String template, org.thymeleaf.context.IContext context, Writer writer)Stringprocess(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context)voidprocess(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context, Writer writer)org.thymeleaf.IThrottledTemplateProcessorprocessThrottled(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context)org.thymeleaf.IThrottledTemplateProcessorprocessThrottled(String template, org.thymeleaf.context.IContext context)org.thymeleaf.IThrottledTemplateProcessorprocessThrottled(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context)voidsetTemplateEngineMessageSource(org.springframework.context.MessageSource templateEngineMessageSource)
-
-
-
Method Detail
-
process
public void process(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context, Writer writer)- Specified by:
processin interfaceorg.thymeleaf.ITemplateEngine
-
processThrottled
public org.thymeleaf.IThrottledTemplateProcessor processThrottled(String template, org.thymeleaf.context.IContext context)
- Specified by:
processThrottledin interfaceorg.thymeleaf.ITemplateEngine
-
processThrottled
public org.thymeleaf.IThrottledTemplateProcessor processThrottled(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context)
- Specified by:
processThrottledin interfaceorg.thymeleaf.ITemplateEngine
-
processThrottled
public org.thymeleaf.IThrottledTemplateProcessor processThrottled(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context)- Specified by:
processThrottledin interfaceorg.thymeleaf.ITemplateEngine
-
getConfiguration
public org.thymeleaf.IEngineConfiguration getConfiguration()
- Specified by:
getConfigurationin interfaceorg.thymeleaf.ITemplateEngine
-
process
public String process(String template, org.thymeleaf.context.IContext context)
- Specified by:
processin interfaceorg.thymeleaf.ITemplateEngine
-
process
public String process(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context)
- Specified by:
processin interfaceorg.thymeleaf.ITemplateEngine
-
process
public String process(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context)
- Specified by:
processin interfaceorg.thymeleaf.ITemplateEngine
-
process
public void process(String template, org.thymeleaf.context.IContext context, Writer writer)
- Specified by:
processin interfaceorg.thymeleaf.ITemplateEngine
-
process
public void process(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context, Writer writer)
- Specified by:
processin interfaceorg.thymeleaf.ITemplateEngine
-
setTemplateEngineMessageSource
public void setTemplateEngineMessageSource(org.springframework.context.MessageSource templateEngineMessageSource)
- Specified by:
setTemplateEngineMessageSourcein interfaceorg.thymeleaf.spring5.ISpringTemplateEngine
-
-