public class

HandlerExecutionChain

extends Object
java.lang.Object
   ↳ org.springframework.web.servlet.HandlerExecutionChain

Class Overview

Handler execution chain, consisting of handler object and any handler interceptors. Returned by HandlerMapping's getHandler(HttpServletRequest) method.

Summary

Public Constructors
HandlerExecutionChain(Object handler)
Create a new HandlerExecutionChain.
HandlerExecutionChain(Object handler, HandlerInterceptor[] interceptors)
Create a new HandlerExecutionChain.
Public Methods
void addInterceptor(HandlerInterceptor interceptor)
void addInterceptors(HandlerInterceptor[] interceptors)
Object getHandler()
Return the handler object to execute.
HandlerInterceptor[] getInterceptors()
Return the array of interceptors to apply (in the given order).
String toString()
Delegates to the handler's toString().
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HandlerExecutionChain (Object handler)

Create a new HandlerExecutionChain.

Parameters
handler the handler object to execute

public HandlerExecutionChain (Object handler, HandlerInterceptor[] interceptors)

Create 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

Public Methods

public void addInterceptor (HandlerInterceptor interceptor)

public void addInterceptors (HandlerInterceptor[] interceptors)

public Object getHandler ()

Return the handler object to execute.

Returns
  • the handler object

public HandlerInterceptor[] getInterceptors ()

Return the array of interceptors to apply (in the given order).

Returns
  • the array of HandlerInterceptors instances (may be null)

public String toString ()

Delegates to the handler's toString().