|
|||||||||
| 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()
|
|
| 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(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object).
preHandleAction in interface HandlerInterceptorrequest - 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 errors
public void afterActionCompletion(ActionRequest request,
ActionResponse response,
Object handler,
Exception ex)
throws Exception
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception).
afterActionCompletion in interface HandlerInterceptorrequest - 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 errors
public boolean preHandleRender(RenderRequest request,
RenderResponse response,
Object handler)
throws Exception
preHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object).
preHandleRender in interface HandlerInterceptorrequest - 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 errors
public void postHandleRender(RenderRequest request,
RenderResponse response,
Object handler,
ModelAndView modelAndView)
throws Exception
postHandleRender in interface HandlerInterceptorrequest - 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 errors
public void afterRenderCompletion(RenderRequest request,
RenderResponse response,
Object handler,
Exception ex)
throws Exception
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception).
afterRenderCompletion in interface HandlerInterceptorrequest - 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 errors
public boolean preHandleResource(ResourceRequest request,
ResourceResponse response,
Object handler)
throws Exception
preHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object).
preHandleResource in interface HandlerInterceptorrequest - 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 errors
public void postHandleResource(ResourceRequest request,
ResourceResponse response,
Object handler,
ModelAndView modelAndView)
throws Exception
postHandleResource in interface HandlerInterceptorrequest - 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 errors
public void afterResourceCompletion(ResourceRequest request,
ResourceResponse response,
Object handler,
Exception ex)
throws Exception
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception).
afterResourceCompletion in interface HandlerInterceptorrequest - 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 errors
public boolean preHandleEvent(EventRequest request,
EventResponse response,
Object handler)
throws Exception
preHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object).
preHandleEvent in interface HandlerInterceptorrequest - 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 errors
public void afterEventCompletion(EventRequest request,
EventResponse response,
Object handler,
Exception ex)
throws Exception
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception).
afterEventCompletion in interface HandlerInterceptorrequest - 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 errors
protected boolean preHandle(PortletRequest request,
PortletResponse response,
Object handler)
throws Exception
This implementation always returns true.
Exception
protected void afterCompletion(PortletRequest request,
PortletResponse response,
Object handler,
Exception ex)
throws Exception
This implementation is empty.
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||