public class HandlerExecutionChain extends Object
HandlerMapping.getHandler(javax.servlet.http.HttpServletRequest)
method.HandlerInterceptor
Constructor and Description |
---|
HandlerExecutionChain(Object handler)
Create a new HandlerExecutionChain.
|
HandlerExecutionChain(Object handler,
HandlerInterceptor... interceptors)
Create a new HandlerExecutionChain.
|
Modifier and Type | Method and Description |
---|---|
void |
addInterceptor(HandlerInterceptor interceptor)
Add the given interceptor to the end of this chain.
|
void |
addInterceptors(HandlerInterceptor... interceptors)
Add the given interceptors to the end of this chain.
|
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() implementation. |
public HandlerExecutionChain(Object handler)
handler
- the handler object to executepublic HandlerExecutionChain(Object handler, HandlerInterceptor... interceptors)
handler
- the handler object to executeinterceptors
- the array of interceptors to apply
(in the given order) before the handler itself executespublic Object getHandler()
null
)public void addInterceptor(HandlerInterceptor interceptor)
public void addInterceptors(HandlerInterceptor... interceptors)
public HandlerInterceptor[] getInterceptors()
null
)