Class HandlerExecutionChain
java.lang.Object
org.springframework.web.servlet.HandlerExecutionChain
Handler execution chain, consisting of handler object and any handler interceptors.
 Returned by HandlerMapping's 
HandlerMapping.getHandler(jakarta.servlet.http.HttpServletRequest) method.- Since:
- 20.06.2003
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionHandlerExecutionChain(Object handler) Create a new HandlerExecutionChain.HandlerExecutionChain(Object handler, List<HandlerInterceptor> interceptorList) Create a new HandlerExecutionChain.HandlerExecutionChain(Object handler, HandlerInterceptor @Nullable ... interceptors) Create a new HandlerExecutionChain.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddInterceptor(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.voidaddInterceptors(HandlerInterceptor... interceptors) Add the given interceptors to the end of this chain.Return the handler object to execute.Return the list of interceptors to apply (in the given order).Return the array of interceptors to apply (in the given order).toString()Delegates to the handler'stoString()implementation.
- 
Constructor Details- 
HandlerExecutionChainCreate a new HandlerExecutionChain.- Parameters:
- handler- the handler object to execute
 
- 
HandlerExecutionChainCreate a new HandlerExecutionChain.- Parameters:
- handler- the handler object to execute
- interceptors- the array of interceptors to apply (in the given order) before the handler itself executes
 
- 
HandlerExecutionChainCreate a new HandlerExecutionChain.- Parameters:
- handler- the handler object to execute
- interceptorList- the list of interceptors to apply (in the given order) before the handler itself executes
- Since:
- 5.3
 
 
- 
- 
Method Details- 
getHandlerReturn the handler object to execute.
- 
addInterceptorAdd the given interceptor to the end of this chain.
- 
addInterceptorAdd the given interceptor at the specified index of this chain.- Since:
- 5.2
 
- 
addInterceptorsAdd the given interceptors to the end of this chain.
- 
getInterceptorsReturn the array of interceptors to apply (in the given order).- Returns:
- the array of HandlerInterceptors instances (may be null)
 
- 
getInterceptorListReturn the list of interceptors to apply (in the given order).- Returns:
- the list of HandlerInterceptors instances (potentially empty)
- Since:
- 5.3
 
- 
toString
 
-