Class OAuth2ClientTemplateResolver
- java.lang.Object
-
- org.thymeleaf.templateresolver.AbstractTemplateResolver
-
- org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver
-
- org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver
-
- com.broadleafcommerce.auth.user.web.resolver.OAuth2ClientTemplateResolver
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.thymeleaf.templateresolver.ITemplateResolver
public class OAuth2ClientTemplateResolver extends org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver
-
-
Constructor Summary
Constructors Constructor Description OAuth2ClientTemplateResolver(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
protected org.thymeleaf.templateresource.ITemplateResource
computeTemplateResource(org.thymeleaf.IEngineConfiguration configuration, String ownerTemplate, String template, String resourceName, String characterEncoding, Map<String,Object> templateResolutionAttributes)
boolean
equals(Object o)
protected AuthorizedClientService<AuthorizedClient>
getClientService()
protected AuthorizationServerService<AuthorizationServer>
getServerService()
protected String
getTemplatePath(String clientId)
Return the template path for the supplied client ID.int
hashCode()
-
Methods inherited from class org.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver
setApplicationContext
-
Methods inherited from class org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver
addTemplateAlias, clearTemplateAliases, computeResourceName, computeResourceName, computeTemplateMode, computeTemplateResource, computeValidity, getCacheablePatterns, getCacheablePatternSpec, getCacheTTLMs, getCharacterEncoding, getCSSTemplateModePatterns, getCSSTemplateModePatternSpec, getForceSuffix, getForceTemplateMode, getHtml5TemplateModePatterns, getHtml5TemplateModePatternSpec, getHtmlTemplateModePatterns, getHtmlTemplateModePatternSpec, getJavaScriptTemplateModePatterns, getJavaScriptTemplateModePatternSpec, getLegacyHtml5TemplateModePatterns, getLegacyHtml5TemplateModePatternSpec, getNonCacheablePatterns, getNonCacheablePatternSpec, getPrefix, getRawTemplateModePatterns, getRawTemplateModePatternSpec, getSuffix, getTemplateAliases, getTemplateMode, getTextTemplateModePatterns, getTextTemplateModePatternSpec, getValidXhtmlTemplateModePatterns, getValidXhtmlTemplateModePatternSpec, getValidXmlTemplateModePatterns, getValidXmlTemplateModePatternSpec, getXhtmlTemplateModePatterns, getXhtmlTemplateModePatternSpec, getXmlTemplateModePatterns, getXmlTemplateModePatternSpec, isCacheable, setCacheable, setCacheablePatterns, setCacheTTLMs, setCharacterEncoding, setCSSTemplateModePatterns, setForceSuffix, setForceTemplateMode, setHtml5TemplateModePatterns, setHtmlTemplateModePatterns, setJavaScriptTemplateModePatterns, setLegacyHtml5TemplateModePatterns, setNonCacheablePatterns, setPrefix, setRawTemplateModePatterns, setSuffix, setTemplateAliases, setTemplateMode, setTemplateMode, setTextTemplateModePatterns, setValidXhtmlTemplateModePatterns, setValidXmlTemplateModePatterns, setXhtmlTemplateModePatterns, setXmlTemplateModePatterns
-
Methods inherited from class org.thymeleaf.templateresolver.AbstractTemplateResolver
computeResolvable, getCheckExistence, getName, getOrder, getResolvablePatterns, getResolvablePatternSpec, getUseDecoupledLogic, resolveTemplate, setCheckExistence, setName, setOrder, setResolvablePatterns, setUseDecoupledLogic
-
-
-
-
Constructor Detail
-
OAuth2ClientTemplateResolver
public OAuth2ClientTemplateResolver(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService)
-
-
Method Detail
-
computeTemplateResource
protected org.thymeleaf.templateresource.ITemplateResource computeTemplateResource(org.thymeleaf.IEngineConfiguration configuration, String ownerTemplate, String template, String resourceName, String characterEncoding, Map<String,Object> templateResolutionAttributes)
- Overrides:
computeTemplateResource
in classorg.thymeleaf.spring5.templateresolver.SpringResourceTemplateResolver
-
getTemplatePath
protected String getTemplatePath(@NonNull String clientId)
Return the template path for the supplied client ID.The template path is retrieved from the
AuthorizationServer
associated with the clientId.- Parameters:
clientId
- The client ID- Returns:
- The value of
AuthorizationServer.getTemplatePath()
-
canEqual
protected boolean canEqual(Object other)
-
getClientService
protected AuthorizedClientService<AuthorizedClient> getClientService()
-
getServerService
protected AuthorizationServerService<AuthorizationServer> getServerService()
-
-