接口的使用
cn.taketoday.web.HandlerInterceptor
使用HandlerInterceptor的程序包
程序包
说明
Web Session Supports like Servlet's Session
Web Handler
Method handler
Standard controller implementations for the MVC framework use like Framework
Locale support classes for web MVC framework.
-
cn.taketoday.session中HandlerInterceptor的使用
-
cn.taketoday.web中HandlerInterceptor的使用
修饰符和类型字段说明static final HandlerInterceptor[]HandlerInterceptor.EMPTY_ARRAYempty HandlerInterceptor arrayprivate final HandlerInterceptor[]InterceptorChain.interceptors修饰符和类型方法说明HandlerInterceptorsProvider.getInterceptors()GetHandlerInterceptorarrayInterceptorChain.getInterceptors()Get interceptors参数类型为HandlerInterceptor的cn.taketoday.web中的构造器 -
cn.taketoday.web.config中HandlerInterceptor的使用
修饰符和类型方法说明InterceptorRegistry.addInterceptor(HandlerInterceptor interceptor) Adds the providedHandlerInterceptor.参数类型为HandlerInterceptor的cn.taketoday.web.config中的构造器限定符构造器说明InterceptorRegistration(HandlerInterceptor interceptor) Create anInterceptorRegistrationinstance. -
cn.taketoday.web.handler中HandlerInterceptor的使用
修饰符和类型类说明private classclassfinal classWraps aHandlerInterceptorand uses URL patterns to determine whether it applies to a given request.类型参数类型为HandlerInterceptor的cn.taketoday.web.handler中的字段修饰符和类型字段说明private final ArrayList<HandlerInterceptor>AbstractHandlerMapping.interceptorsprotected final cn.taketoday.util.ArrayHolder<HandlerInterceptor>HandlerInterceptorHolder.interceptorsinterceptors array修饰符和类型方法说明protected HandlerInterceptor[]AbstractHandlerMapping.getHandlerInterceptors(Object handler) MappedInterceptor.getInterceptor()The targetHandlerInterceptorto invoke in case of a match.HandlerInterceptorHolder.getInterceptors()返回变量类型为HandlerInterceptor的类型的cn.taketoday.web.handler中的方法修饰符和类型方法说明voidHandlerExecutionChain.addInterceptor(int index, HandlerInterceptor interceptor) Add the given interceptor at the specified index of this chain.voidHandlerExecutionChain.addInterceptor(HandlerInterceptor interceptor) Add the given interceptor to the end of this chain.voidHandlerInterceptorHolder.addInterceptors(HandlerInterceptor... interceptors) add interceptors at end of theHandlerInterceptorHolder.interceptorsvoidHandlerInterceptorHolder.setInterceptors(HandlerInterceptor... interceptors) replace interceptors类型变量类型为HandlerInterceptor的cn.taketoday.web.handler中的方法参数修饰符和类型方法说明voidHandlerInterceptorHolder.addInterceptors(List<HandlerInterceptor> interceptors) add interceptors at end of theHandlerInterceptorHolder.interceptorsprotected voidAbstractHandlerMapping.detectMappedInterceptors(List<HandlerInterceptor> mappedInterceptors) Detect beans of typeMappedInterceptorand add them to the list of mapped interceptors.protected voidAbstractHandlerMapping.extendInterceptors(List<HandlerInterceptor> interceptors) Extension hook that subclasses can override to register additional interceptors, given the configured interceptors (seeAbstractHandlerMapping.setInterceptors(java.lang.Object...)).voidHandlerInterceptorHolder.setInterceptors(List<HandlerInterceptor> interceptors) 参数类型为HandlerInterceptor的cn.taketoday.web.handler中的构造器限定符构造器说明privateChain(HandlerInterceptor[] interceptors, Object handler) privateChain(HandlerInterceptor[] interceptors, Object handler) HandlerExecutionChain(Object handler, HandlerInterceptor... interceptors) Create a new HandlerExecutionChain.InterceptableRequestHandler(HandlerInterceptor... interceptors) MappedInterceptor(String[] includePatterns, HandlerInterceptor interceptor) Variant ofMappedInterceptor(String[], String[], HandlerInterceptor, PathPatternParser)with include patterns only.MappedInterceptor(String[] includePatterns, String[] excludePatterns, HandlerInterceptor interceptor) Variant ofMappedInterceptor(String[], String[], HandlerInterceptor, PathPatternParser)without a provided parser.MappedInterceptor(String[] includePatterns, String[] excludePatterns, HandlerInterceptor interceptor, PathPatternParser parser) Create an instance with the given include and exclude patterns along with the target interceptor for the mappings. -
cn.taketoday.web.handler.method中HandlerInterceptor的使用
修饰符和类型方法说明protected HandlerInterceptor[]AbstractHandlerMethodMapping.MappingRegistry.createValue(Method method, HandlerMethod handlerMethod) protected HandlerInterceptor[]AbstractHandlerMethodMapping.getHandlerInterceptors(Object handler) AbstractHandlerMethodMapping.MappingRegistry.getHandlerInterceptors(HandlerMethod handlerMethod) 返回变量类型为HandlerInterceptor的类型的cn.taketoday.web.handler.method中的方法修饰符和类型方法说明protected List<HandlerInterceptor>AbstractHandlerMethodMapping.getInterceptors(Class<?> controllerClass, Method action) Get list of intercepters.类型变量类型为HandlerInterceptor的cn.taketoday.web.handler.method中的方法参数修饰符和类型方法说明private voidAbstractHandlerMethodMapping.addInterceptors(cn.taketoday.context.ApplicationContext context, ArrayList<HandlerInterceptor> ret, cn.taketoday.core.annotation.MergedAnnotation<Interceptor> annotation) AnnotationHandlerFactory.create(Object handlerBean, Method method, Class<?> beanType, List<HandlerInterceptor> interceptors) AnnotationHandlerFactory.create(String beanName, Method method, Class<?> beanType, List<HandlerInterceptor> interceptors) AnnotationHandlerFactory.create(Supplier<Object> handlerBean, Method method, Class<?> beanType, List<HandlerInterceptor> interceptors) -
cn.taketoday.web.handler.mvc中HandlerInterceptor的使用
修饰符和类型类说明classHandler interceptor that checks the request for supported methods and a required session and prepares the response by applying the configured cache settings. -
cn.taketoday.web.i18n中HandlerInterceptor的使用
修饰符和类型类说明classInterceptor that allows for changing the current locale on every request, via a configurable request parameter (default parameter name: "locale").