|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
Object handler,
Exception ex)
This implementation delegates to afterCompletion . |
protected void |
afterCompletion(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
Object handler,
Exception ex)
Default callback that both preHandleRender
and preHandleAction delegate to. |
void |
afterRenderCompletion(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
Object handler,
Exception ex)
This implementation delegates to afterCompletion . |
void |
postHandleRender(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
Object handler,
ModelAndView modelAndView)
This implementation is empty. |
protected boolean |
preHandle(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
Object handler)
Default callback that both preHandleRender
and preHandleAction delegate to. |
boolean |
preHandleAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
Object handler)
This implementation delegates to preHandle . |
boolean |
preHandleRender(javax.portlet.RenderRequest request,
javax.portlet.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(javax.portlet.ActionRequest request, javax.portlet.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(javax.portlet.ActionRequest request, javax.portlet.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(javax.portlet.RenderRequest request, javax.portlet.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(javax.portlet.RenderRequest request, javax.portlet.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(javax.portlet.RenderRequest request, javax.portlet.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(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, Object handler) throws Exception
preHandleRender
and preHandleAction
delegate to.
This implementation always returns true
.
Exception
preHandleRender(javax.portlet.RenderRequest, javax.portlet.RenderResponse, java.lang.Object)
,
preHandleAction(javax.portlet.ActionRequest, javax.portlet.ActionResponse, java.lang.Object)
protected void afterCompletion(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, Object handler, Exception ex) throws Exception
preHandleRender
and preHandleAction
delegate to.
This implementation is empty.
Exception
afterRenderCompletion(javax.portlet.RenderRequest, javax.portlet.RenderResponse, java.lang.Object, java.lang.Exception)
,
afterActionCompletion(javax.portlet.ActionRequest, javax.portlet.ActionResponse, java.lang.Object, java.lang.Exception)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |