Class OAuth2ClientIdTemplateEngine
java.lang.Object
com.broadleafcommerce.auth.user.web.engine.OAuth2ClientIdTemplateEngine
- All Implemented Interfaces:
org.thymeleaf.ITemplateEngine
,org.thymeleaf.spring6.ISpringTemplateEngine
public class OAuth2ClientIdTemplateEngine
extends Object
implements org.thymeleaf.spring6.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 Summary
ConstructorDescriptionOAuth2ClientIdTemplateEngine
(org.thymeleaf.spring6.SpringTemplateEngine delegate) -
Method Summary
Modifier and TypeMethodDescriptionorg.thymeleaf.IEngineConfiguration
void
process
(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context, Writer writer) void
process
(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context) void
process
(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context, Writer writer) org.thymeleaf.IThrottledTemplateProcessor
processThrottled
(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context) org.thymeleaf.IThrottledTemplateProcessor
processThrottled
(String template, org.thymeleaf.context.IContext context) org.thymeleaf.IThrottledTemplateProcessor
processThrottled
(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context) void
setTemplateEngineMessageSource
(org.springframework.context.MessageSource templateEngineMessageSource)
-
Constructor Details
-
OAuth2ClientIdTemplateEngine
public OAuth2ClientIdTemplateEngine(org.thymeleaf.spring6.SpringTemplateEngine delegate)
-
-
Method Details
-
process
public void process(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context, Writer writer) - Specified by:
process
in interfaceorg.thymeleaf.ITemplateEngine
-
processThrottled
public org.thymeleaf.IThrottledTemplateProcessor processThrottled(String template, org.thymeleaf.context.IContext context) - Specified by:
processThrottled
in interfaceorg.thymeleaf.ITemplateEngine
-
processThrottled
public org.thymeleaf.IThrottledTemplateProcessor processThrottled(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context) - Specified by:
processThrottled
in interfaceorg.thymeleaf.ITemplateEngine
-
processThrottled
public org.thymeleaf.IThrottledTemplateProcessor processThrottled(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context) - Specified by:
processThrottled
in interfaceorg.thymeleaf.ITemplateEngine
-
getConfiguration
public org.thymeleaf.IEngineConfiguration getConfiguration()- Specified by:
getConfiguration
in interfaceorg.thymeleaf.ITemplateEngine
-
process
- Specified by:
process
in interfaceorg.thymeleaf.ITemplateEngine
-
process
public String process(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context) - Specified by:
process
in interfaceorg.thymeleaf.ITemplateEngine
-
process
public String process(org.thymeleaf.TemplateSpec templateSpec, org.thymeleaf.context.IContext context) - Specified by:
process
in interfaceorg.thymeleaf.ITemplateEngine
-
process
- Specified by:
process
in interfaceorg.thymeleaf.ITemplateEngine
-
process
public void process(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context, Writer writer) - Specified by:
process
in interfaceorg.thymeleaf.ITemplateEngine
-
setTemplateEngineMessageSource
public void setTemplateEngineMessageSource(org.springframework.context.MessageSource templateEngineMessageSource) - Specified by:
setTemplateEngineMessageSource
in interfaceorg.thymeleaf.spring6.ISpringTemplateEngine
-