Class AbstractAuthInterceptorAutoConfigure<A extends AuthWebProperties>
java.lang.Object
net.guerlab.cloud.auth.webmvc.autoconfigure.AbstractAuthInterceptorAutoConfigure<A>
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public abstract class AbstractAuthInterceptorAutoConfigure<A extends AuthWebProperties>
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
抽象鉴权拦截器配置.
- Author:
- guer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAuthInterceptorAutoConfigure(A properties) 初始化鉴权拦截器配置. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) protected voidaddInterceptorsInternal(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) 添加其他拦截器处理.protected final voidsetPathPatterns(org.springframework.web.servlet.config.annotation.InterceptorRegistration interceptor) 设置路径信息.voidsetTokenHandlerInterceptors(Collection<? extends AbstractTokenHandlerInterceptor<A>> tokenHandlerInterceptors) 设置token处理拦截器列表.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
AbstractAuthInterceptorAutoConfigure
初始化鉴权拦截器配置.- Parameters:
properties- 认证配置
-
-
Method Details
-
addInterceptors
public final void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addInterceptorsInternal
protected void addInterceptorsInternal(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) 添加其他拦截器处理.- Parameters:
registry- InterceptorRegistry实例
-
setPathPatterns
protected final void setPathPatterns(org.springframework.web.servlet.config.annotation.InterceptorRegistration interceptor) 设置路径信息.- Parameters:
interceptor- 拦截器
-
setTokenHandlerInterceptors
@Autowired(required=false) public void setTokenHandlerInterceptors(Collection<? extends AbstractTokenHandlerInterceptor<A>> tokenHandlerInterceptors) 设置token处理拦截器列表.- Parameters:
tokenHandlerInterceptors- token处理拦截器列表
-