类 HandlerInterceptorAdapter
- java.lang.Object
- org.springframework.web.portlet.handler.HandlerInterceptorAdapter
- 所有已实现的接口:
HandlerInterceptor
public abstract class HandlerInterceptorAdapter extends Object implements HandlerInterceptor
Abstract adapter class for theHandlerInterceptor
interface, for simplified implementation of pre-only/post-only interceptors.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller, John A. Lewis
构造器概要
构造器 构造器 说明 HandlerInterceptorAdapter()
方法概要
构造器详细资料
HandlerInterceptorAdapter
public HandlerInterceptorAdapter()
方法详细资料
preHandleAction
public boolean preHandleAction(ActionRequest request, ActionResponse response, Object handler) throws Exception
This implementation delegates topreHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object)
.- 指定者:
preHandleAction
在接口中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 errors
afterActionCompletion
public void afterActionCompletion(ActionRequest request, ActionResponse response, Object handler, Exception ex) throws Exception
This implementation delegates toafterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception)
.- 指定者:
afterActionCompletion
在接口中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 isnull
)- 抛出:
Exception
- in case of errors
preHandleRender
public boolean preHandleRender(RenderRequest request, RenderResponse response, Object handler) throws Exception
This implementation delegates topreHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object)
.- 指定者:
preHandleRender
在接口中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 errors
postHandleRender
public void postHandleRender(RenderRequest request, RenderResponse response, Object handler, ModelAndView modelAndView) throws Exception
This implementation is empty.- 指定者:
postHandleRender
在接口中HandlerInterceptor
- 参数:
request
- current portlet render requestresponse
- current portlet render responsehandler
- chosen handler to execute, for type and/or instance examinationmodelAndView
- theModelAndView
that the handler returned (can also benull
)- 抛出:
Exception
- in case of errors
afterRenderCompletion
public void afterRenderCompletion(RenderRequest request, RenderResponse response, Object handler, Exception ex) throws Exception
This implementation delegates toafterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception)
.- 指定者:
afterRenderCompletion
在接口中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 errors
preHandleResource
public boolean preHandleResource(ResourceRequest request, ResourceResponse response, Object handler) throws Exception
This implementation delegates topreHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object)
.- 指定者:
preHandleResource
在接口中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 errors
postHandleResource
public void postHandleResource(ResourceRequest request, ResourceResponse response, Object handler, ModelAndView modelAndView) throws Exception
This implementation is empty.- 指定者:
postHandleResource
在接口中HandlerInterceptor
- 参数:
request
- current portlet render requestresponse
- current portlet render responsehandler
- chosen handler to execute, for type and/or instance examinationmodelAndView
- theModelAndView
that the handler returned (can also benull
)- 抛出:
Exception
- in case of errors
afterResourceCompletion
public void afterResourceCompletion(ResourceRequest request, ResourceResponse response, Object handler, Exception ex) throws Exception
This implementation delegates toafterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception)
.- 指定者:
afterResourceCompletion
在接口中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 errors
preHandleEvent
public boolean preHandleEvent(EventRequest request, EventResponse response, Object handler) throws Exception
This implementation delegates topreHandle(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object)
.- 指定者:
preHandleEvent
在接口中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 errors
afterEventCompletion
public void afterEventCompletion(EventRequest request, EventResponse response, Object handler, Exception ex) throws Exception
This implementation delegates toafterCompletion(javax.portlet.PortletRequest, javax.portlet.PortletResponse, java.lang.Object, java.lang.Exception)
.- 指定者:
afterEventCompletion
在接口中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 isnull
)- 抛出:
Exception
- in case of errors
preHandle
protected boolean preHandle(PortletRequest request, PortletResponse response, Object handler) throws Exception
Default callback that all "pre*" methods delegate to.This implementation always returns
true
.- 抛出:
Exception
afterCompletion
protected void afterCompletion(PortletRequest request, PortletResponse response, Object handler, Exception ex) throws Exception
Default callback that all "after*" methods delegate to.This implementation is empty.
- 抛出:
Exception