Class OAuth2ClientTemplateResolver
java.lang.Object
org.thymeleaf.templateresolver.AbstractTemplateResolver
org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver
org.thymeleaf.spring6.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.spring6.templateresolver.SpringResourceTemplateResolver
-
Field Summary
Fields inherited from class org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver
DEFAULT_CACHE_TTL_MS, DEFAULT_CACHEABLE, DEFAULT_TEMPLATE_MODE
Fields inherited from class org.thymeleaf.templateresolver.AbstractTemplateResolver
DEFAULT_EXISTENCE_CHECK, DEFAULT_USE_DECOUPLED_LOGIC
-
Constructor Summary
ConstructorDescriptionOAuth2ClientTemplateResolver
(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected org.thymeleaf.templateresource.ITemplateResource
computeTemplateResource
(org.thymeleaf.IEngineConfiguration configuration, String ownerTemplate, String template, String resourceName, String characterEncoding, Map<String, Object> templateResolutionAttributes) boolean
protected AuthorizedClientService<AuthorizedClient>
protected AuthorizationServerService<AuthorizationServer>
protected String
getTemplatePath
(String clientId) Return the template path for the supplied client ID.int
hashCode()
Methods inherited from class org.thymeleaf.spring6.templateresolver.SpringResourceTemplateResolver
setApplicationContext
Methods inherited from class org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver
addTemplateAlias, clearTemplateAliases, computeResourceName, computeTemplateMode, computeTemplateResource, computeValidity, getCacheablePatterns, getCacheablePatternSpec, getCacheTTLMs, getCharacterEncoding, getCSSTemplateModePatterns, getCSSTemplateModePatternSpec, getForceSuffix, getForceTemplateMode, getHtmlTemplateModePatterns, getHtmlTemplateModePatternSpec, getJavaScriptTemplateModePatterns, getJavaScriptTemplateModePatternSpec, getNonCacheablePatterns, getNonCacheablePatternSpec, getPrefix, getRawTemplateModePatterns, getRawTemplateModePatternSpec, getSuffix, getTemplateAliases, getTemplateMode, getTextTemplateModePatterns, getTextTemplateModePatternSpec, getXmlTemplateModePatterns, getXmlTemplateModePatternSpec, isCacheable, setCacheable, setCacheablePatterns, setCacheTTLMs, setCharacterEncoding, setCSSTemplateModePatterns, setForceSuffix, setForceTemplateMode, setHtmlTemplateModePatterns, setJavaScriptTemplateModePatterns, setNonCacheablePatterns, setPrefix, setRawTemplateModePatterns, setSuffix, setTemplateAliases, setTemplateMode, setTemplateMode, setTextTemplateModePatterns, setXmlTemplateModePatterns
Methods inherited from class org.thymeleaf.templateresolver.AbstractTemplateResolver
computeResolvable, getCheckExistence, getName, getOrder, getResolvablePatterns, getResolvablePatternSpec, getUseDecoupledLogic, resolveTemplate, setCheckExistence, setName, setOrder, setResolvablePatterns, setUseDecoupledLogic
-
Constructor Details
-
OAuth2ClientTemplateResolver
public OAuth2ClientTemplateResolver(AuthorizedClientService<AuthorizedClient> clientService, AuthorizationServerService<AuthorizationServer> serverService)
-
-
Method Details
-
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.spring6.templateresolver.SpringResourceTemplateResolver
-
getTemplatePath
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()
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getClientService
-
getServerService
-