|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.portlet.handler.HandlerInterceptorAdapter
public abstract class HandlerInterceptorAdapter
Abstract adapter class for the HandlerInterceptor interface, for simplified implementation of pre-only/post-only interceptors.
Constructor Summary | |
---|---|
HandlerInterceptorAdapter()
|
Method Summary | |
---|---|
void |
afterActionCompletion(ActionRequest request,
ActionResponse response,
Object handler,
Exception ex)
This implementation delegates to afterCompletion . |
protected void |
afterCompletion(PortletRequest request,
PortletResponse response,
Object handler,
Exception ex)
Default callback that both preHandleRender
and preHandleAction delegate to. |
void |
afterRenderCompletion(RenderRequest request,
RenderResponse response,
Object handler,
Exception ex)
This implementation delegates to afterCompletion . |
void |
postHandleRender(RenderRequest request,
RenderResponse response,
Object handler,
ModelAndView modelAndView)
This implementation is empty. |
protected boolean |
preHandle(PortletRequest request,
PortletResponse response,
Object handler)
Default callback that both preHandleRender
and preHandleAction delegate to. |
boolean |
preHandleAction(ActionRequest request,
ActionResponse response,
Object handler)
This implementation delegates to preHandle . |
boolean |
preHandleRender(RenderRequest request,
RenderResponse response,
Object handler)
This implementation delegates to preHandle . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HandlerInterceptorAdapter()
Method Detail |
---|
public boolean preHandleAction(ActionRequest request, ActionResponse response, Object handler) throws Exception
preHandle
.
preHandleAction
in interface HandlerInterceptor
request
- current portlet action requestresponse
- current portlet action responsehandler
- chosen handler to execute, for type and/or instance evaluation
true
if the execution chain should proceed with the
next interceptor or the handler itself. Else, DispatcherPortlet
assumes that this interceptor has already dealt with the response itself
Exception
- in case of errorspreHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object)
public void afterActionCompletion(ActionRequest request, ActionResponse response, Object handler, Exception ex) throws Exception
afterCompletion
.
afterActionCompletion
in interface HandlerInterceptor
request
- current portlet action requestresponse
- current portlet action responsehandler
- chosen handler to execute, for type and/or instance examinationex
- exception thrown on handler execution, if any (only included as
additional context information for the case where a handler threw an exception;
request execution may have failed even when this argument is null
)
Exception
- in case of errorsafterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception)
public boolean preHandleRender(RenderRequest request, RenderResponse response, Object handler) throws Exception
preHandle
.
preHandleRender
in interface HandlerInterceptor
request
- current portlet render requestresponse
- current portlet render responsehandler
- chosen handler to execute, for type and/or instance evaluation
true
if the execution chain should proceed with the
next interceptor or the handler itself. Else, DispatcherPortlet
assumes that this interceptor has already dealt with the response itself
Exception
- in case of errorspreHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object)
public void postHandleRender(RenderRequest request, RenderResponse response, Object handler, ModelAndView modelAndView) throws Exception
postHandleRender
in interface HandlerInterceptor
request
- current portlet render requestresponse
- current portlet render responsehandler
- chosen handler to execute, for type and/or instance examinationmodelAndView
- the ModelAndView
that the handler returned
(can also be null
)
Exception
- in case of errorspublic void afterRenderCompletion(RenderRequest request, RenderResponse response, Object handler, Exception ex) throws Exception
afterCompletion
.
afterRenderCompletion
in interface HandlerInterceptor
request
- current portlet render requestresponse
- current portlet render responsehandler
- chosen handler to execute, for type and/or instance examinationex
- exception thrown on handler execution, if any
Exception
- in case of errorsafterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception)
protected boolean preHandle(PortletRequest request, PortletResponse response, Object handler) throws Exception
preHandleRender
and preHandleAction
delegate to.
This implementation always returns true
.
protected void afterCompletion(PortletRequest request, PortletResponse response, Object handler, Exception ex) throws Exception
preHandleRender
and preHandleAction
delegate to.
This implementation is empty.
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |