public abstract class HandlerInterceptorAdapter extends java.lang.Object implements HandlerInterceptor
HandlerInterceptor
interface,
for simplified implementation of pre-only/post-only interceptors.Constructor and Description |
---|
HandlerInterceptorAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
afterActionCompletion(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
java.lang.Object handler,
java.lang.Exception ex)
This implementation delegates to
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception) . |
protected void |
afterCompletion(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
java.lang.Object handler,
java.lang.Exception ex)
Default callback that all "after*" methods delegate to.
|
void |
afterEventCompletion(javax.portlet.EventRequest request,
javax.portlet.EventResponse response,
java.lang.Object handler,
java.lang.Exception ex)
This implementation delegates to
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception) . |
void |
afterRenderCompletion(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
java.lang.Object handler,
java.lang.Exception ex)
This implementation delegates to
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception) . |
void |
afterResourceCompletion(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
java.lang.Object handler,
java.lang.Exception ex)
This implementation delegates to
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception) . |
void |
postHandleRender(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
java.lang.Object handler,
ModelAndView modelAndView)
This implementation is empty.
|
void |
postHandleResource(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
java.lang.Object handler,
ModelAndView modelAndView)
This implementation is empty.
|
protected boolean |
preHandle(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response,
java.lang.Object handler)
Default callback that all "pre*" methods delegate to.
|
boolean |
preHandleAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
java.lang.Object handler)
This implementation delegates to
preHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object) . |
boolean |
preHandleEvent(javax.portlet.EventRequest request,
javax.portlet.EventResponse response,
java.lang.Object handler)
This implementation delegates to
preHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object) . |
boolean |
preHandleRender(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
java.lang.Object handler)
This implementation delegates to
preHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object) . |
boolean |
preHandleResource(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
java.lang.Object handler)
This implementation delegates to
preHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object) . |
public boolean preHandleAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, java.lang.Object handler) throws java.lang.Exception
preHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object)
.preHandleAction
in interface HandlerInterceptor
request
- current portlet action requestresponse
- current portlet action responsehandler
- chosen handler to execute, for type and/or instance evaluationtrue
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 itselfjava.lang.Exception
- in case of errorspublic void afterActionCompletion(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, java.lang.Object handler, java.lang.Exception ex) throws java.lang.Exception
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception)
.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
)java.lang.Exception
- in case of errorspublic boolean preHandleRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, java.lang.Object handler) throws java.lang.Exception
preHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object)
.preHandleRender
in interface HandlerInterceptor
request
- current portlet render requestresponse
- current portlet render responsehandler
- chosen handler to execute, for type and/or instance evaluationtrue
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 itselfjava.lang.Exception
- in case of errorspublic void postHandleRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, java.lang.Object handler, ModelAndView modelAndView) throws java.lang.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
)java.lang.Exception
- in case of errorspublic void afterRenderCompletion(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, java.lang.Object handler, java.lang.Exception ex) throws java.lang.Exception
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception)
.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 anyjava.lang.Exception
- in case of errorspublic boolean preHandleResource(javax.portlet.ResourceRequest request, javax.portlet.ResourceResponse response, java.lang.Object handler) throws java.lang.Exception
preHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object)
.preHandleResource
in interface HandlerInterceptor
request
- current portlet render requestresponse
- current portlet render responsehandler
- chosen handler to execute, for type and/or instance evaluationtrue
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 itselfjava.lang.Exception
- in case of errorspublic void postHandleResource(javax.portlet.ResourceRequest request, javax.portlet.ResourceResponse response, java.lang.Object handler, ModelAndView modelAndView) throws java.lang.Exception
postHandleResource
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
)java.lang.Exception
- in case of errorspublic void afterResourceCompletion(javax.portlet.ResourceRequest request, javax.portlet.ResourceResponse response, java.lang.Object handler, java.lang.Exception ex) throws java.lang.Exception
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception)
.afterResourceCompletion
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 anyjava.lang.Exception
- in case of errorspublic boolean preHandleEvent(javax.portlet.EventRequest request, javax.portlet.EventResponse response, java.lang.Object handler) throws java.lang.Exception
preHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object)
.preHandleEvent
in interface HandlerInterceptor
request
- current portlet action requestresponse
- current portlet action responsehandler
- chosen handler to execute, for type and/or instance evaluationtrue
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 itselfjava.lang.Exception
- in case of errorspublic void afterEventCompletion(javax.portlet.EventRequest request, javax.portlet.EventResponse response, java.lang.Object handler, java.lang.Exception ex) throws java.lang.Exception
afterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception)
.afterEventCompletion
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
)java.lang.Exception
- in case of errorsprotected boolean preHandle(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, java.lang.Object handler) throws java.lang.Exception
This implementation always returns true
.
java.lang.Exception
protected void afterCompletion(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response, java.lang.Object handler, java.lang.Exception ex) throws java.lang.Exception
This implementation is empty.
java.lang.Exception