类 HandlerExecutionChain
java.lang.Object
cn.taketoday.web.handler.HandlerInterceptorHolder
cn.taketoday.web.handler.InterceptableRequestHandler
cn.taketoday.web.handler.HandlerExecutionChain
public class HandlerExecutionChain
extends InterceptableRequestHandler
implements HandlerWrapper, HandlerAdapterAware
Handler execution chain, consisting of handler object and any handler interceptors.
Returned by HandlerMapping's
HandlerMapping.getHandler(cn.taketoday.web.RequestContext) method.- 从以下版本开始:
- 4.0 2022/5/22 22:42
- 作者:
- Juergen Hoeller, Harry Yang
- 另请参阅:
-
字段概要
字段从类继承的字段 cn.taketoday.web.handler.HandlerInterceptorHolder
interceptors从接口继承的字段 cn.taketoday.web.HttpRequestHandler
NONE_RETURN_VALUE -
构造器概要
构造器构造器说明HandlerExecutionChain(Object handler) Create a new HandlerExecutionChain.HandlerExecutionChain(Object handler, HandlerInterceptor... interceptors) Create a new HandlerExecutionChain. -
方法概要
修饰符和类型方法说明voidaddInterceptor(int index, HandlerInterceptor interceptor) Add the given interceptor at the specified index of this chain.voidaddInterceptor(HandlerInterceptor interceptor) Add the given interceptor to the end of this chain.Return the handler object to execute.protected ObjecthandleInternal(RequestContext context) perform this handler' behavior internalvoidsetHandlerAdapter(HandlerAdapter handlerAdapter) toString()Delegates to the handler'stoString()implementation.从类继承的方法 cn.taketoday.web.handler.InterceptableRequestHandler
handleRequest从类继承的方法 cn.taketoday.web.handler.HandlerInterceptorHolder
addInterceptors, addInterceptors, getHolder, getInterceptors, hasInterceptor, interceptorSize, setInterceptors, setInterceptors从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.taketoday.web.HandlerInterceptorsProvider
getInterceptors, hasInterceptor
-
字段详细资料
-
handler
-
handlerAdapter
-
-
构造器详细资料
-
HandlerExecutionChain
Create a new HandlerExecutionChain.- 参数:
handler- the handler object to execute
-
HandlerExecutionChain
Create a new HandlerExecutionChain.- 参数:
handler- the handler object to executeinterceptors- the array of interceptors to apply (in the given order) before the handler itself executes
-
-
方法详细资料
-
getRawHandler
Return the handler object to execute.- 指定者:
getRawHandler在接口中HandlerWrapper
-
addInterceptor
Add the given interceptor to the end of this chain. -
addInterceptor
Add the given interceptor at the specified index of this chain. -
toString
Delegates to the handler'stoString()implementation. -
handleInternal
从类复制的说明:InterceptableRequestHandlerperform this handler' behavior internal- 指定者:
handleInternal在类中InterceptableRequestHandler- 抛出:
Throwable
-
setHandlerAdapter
- 指定者:
setHandlerAdapter在接口中HandlerAdapterAware
-