public class HandlerExecutionChain
extends java.lang.Object
HandlerMapping.getHandler(javax.servlet.http.HttpServletRequest)
method.HandlerInterceptor
Constructor and Description |
---|
HandlerExecutionChain(java.lang.Object handler)
Create a new HandlerExecutionChain.
|
HandlerExecutionChain(java.lang.Object handler,
HandlerInterceptor... interceptors)
Create a new HandlerExecutionChain.
|
Modifier and Type | Method and Description |
---|---|
void |
addInterceptor(HandlerInterceptor interceptor) |
void |
addInterceptors(HandlerInterceptor... interceptors) |
java.lang.Object |
getHandler()
Return the handler object to execute.
|
HandlerInterceptor[] |
getInterceptors()
Return the array of interceptors to apply (in the given order).
|
java.lang.String |
toString()
Delegates to the handler's
toString() . |
public HandlerExecutionChain(java.lang.Object handler)
handler
- the handler object to executepublic HandlerExecutionChain(java.lang.Object handler, @Nullable HandlerInterceptor... interceptors)
handler
- the handler object to executeinterceptors
- the array of interceptors to apply
(in the given order) before the handler itself executespublic java.lang.Object getHandler()
public void addInterceptor(HandlerInterceptor interceptor)
public void addInterceptors(HandlerInterceptor... interceptors)
@Nullable public HandlerInterceptor[] getInterceptors()
null
)public java.lang.String toString()
toString()
.toString
in class java.lang.Object