Package org.springframework.web.portlet
Class HandlerExecutionChain
- java.lang.Object
- org.springframework.web.portlet.HandlerExecutionChain
public class HandlerExecutionChain extends Object
Handler execution chain, consisting of handler object and any handler interceptors. Returned by HandlerMapping'sHandlerMapping.getHandler(javax.portlet.PortletRequest)method.- Since:
- 2.0
- Author:
- Juergen Hoeller, John A. Lewis
- See Also:
HandlerInterceptor
Constructor Summary
Constructors Constructor Description HandlerExecutionChain(Object handler)Create a new HandlerExecutionChain.HandlerExecutionChain(Object handler, HandlerInterceptor... interceptors)Create a new HandlerExecutionChain.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInterceptor(HandlerInterceptor interceptor)voidaddInterceptors(HandlerInterceptor... interceptors)ObjectgetHandler()Return the handler object to execute.HandlerInterceptor[]getInterceptors()Return the array of interceptors to apply (in the given order).StringtoString()Delegates to the handler'stoString().
Constructor Detail
HandlerExecutionChain
public HandlerExecutionChain(Object handler)
Create a new HandlerExecutionChain.- Parameters:
handler- the handler object to execute
HandlerExecutionChain
public HandlerExecutionChain(Object handler, HandlerInterceptor... interceptors)
Create a new HandlerExecutionChain.- Parameters:
handler- the handler object to executeinterceptors- the array of interceptors to apply (in the given order) before the handler itself executes
Method Detail
getHandler
public Object getHandler()
Return the handler object to execute.- Returns:
- the handler object (may be
null)
addInterceptor
public void addInterceptor(HandlerInterceptor interceptor)
addInterceptors
public void addInterceptors(HandlerInterceptor... interceptors)
getInterceptors
public HandlerInterceptor[] getInterceptors()
Return the array of interceptors to apply (in the given order).- Returns:
- the array of HandlerInterceptors instances (may be
null)