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. TheOAuth2ClientTemplateResolver
uses 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.IEngineConfiguration
getConfiguration()
String
process(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context)
void
process(String template, Set<String> templateSelectors, org.thymeleaf.context.IContext context, Writer writer)
String
process(String template, org.thymeleaf.context.IContext context)
void
process(String template, org.thymeleaf.context.IContext context, Writer writer)
String
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)
-
-
-
Method Detail
-
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
public String process(String template, org.thymeleaf.context.IContext context)
- 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
public void process(String template, org.thymeleaf.context.IContext context, Writer writer)
- 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.spring5.ISpringTemplateEngine
-
-