程序包 cn.taketoday.web
类 InterceptorChain
java.lang.Object
cn.taketoday.web.InterceptorChain
HandlerInterceptor execution chain
- 从以下版本开始:
- 4.0
- 作者:
- TODAY 2021/8/8 14:57
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intGet current interceptor's indextarget handler, maybe aHandlerMethodGet interceptorsprotected abstract ObjectinvokeHandler(RequestContext context, Object handler) process target handlerfinal Objectproceed(RequestContext context) Execute next interceptorHandler maybe aHandlerMethodorHandlerWrapper
-
字段详细资料
-
currentIndex
private int currentIndex -
handler
-
interceptorLength
private final int interceptorLength -
interceptors
-
-
构造器详细资料
-
InterceptorChain
-
-
方法详细资料
-
proceed
Execute next interceptor- 参数:
context- current request context- 返回:
- interceptor or handler result, this will handle by
ReturnValueHandler - 抛出:
Throwable- if interceptor throw exception- 另请参阅:
-
invokeHandler
@Nullable protected abstract Object invokeHandler(RequestContext context, Object handler) throws Throwable process target handler- 参数:
context- current contexthandler- this context request handler- 返回:
- handle result
- 抛出:
Throwable
-
getInterceptors
Get interceptors -
getCurrentIndex
public int getCurrentIndex()Get current interceptor's index -
getHandler
target handler, maybe aHandlerMethod -
unwrapHandler
Handler maybe aHandlerMethodorHandlerWrapper
-