类 AbstractAuthInterceptorAutoConfigure<A extends AuthWebProperties>
java.lang.Object
net.guerlab.cloud.auth.webmvc.autoconfigure.AbstractAuthInterceptorAutoConfigure<A>
- 所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
public abstract class AbstractAuthInterceptorAutoConfigure<A extends AuthWebProperties>
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
抽象鉴权拦截器配置.
- 作者:
- guer
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final 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处理拦截器列表.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
构造器详细资料
-
AbstractAuthInterceptorAutoConfigure
初始化鉴权拦截器配置.- 参数:
properties- 认证配置
-
-
方法详细资料
-
addInterceptors
public final void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - 指定者:
addInterceptors在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addInterceptorsInternal
protected void addInterceptorsInternal(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) 添加其他拦截器处理.- 参数:
registry- InterceptorRegistry实例
-
setPathPatterns
protected final void setPathPatterns(org.springframework.web.servlet.config.annotation.InterceptorRegistration interceptor) 设置路径信息.- 参数:
interceptor- 拦截器
-
setTokenHandlerInterceptors
@Autowired(required=false) public void setTokenHandlerInterceptors(Collection<? extends AbstractTokenHandlerInterceptor<A>> tokenHandlerInterceptors) 设置token处理拦截器列表.- 参数:
tokenHandlerInterceptors- token处理拦截器列表
-