类 PortletModeNameViewController
- java.lang.Object
- org.springframework.web.portlet.mvc.PortletModeNameViewController
- 所有已实现的接口:
Controller
public class PortletModeNameViewController extends Object implements Controller
Trivial controller that transforms the PortletMode to a view name. The advantage here is that the client is not exposed to the concrete view technology but rather just to the controller URL; the concrete view will be determined by the ViewResolver.
Example: PortletMode.VIEW -> "view"
This controller does not handle action requests.
- 从以下版本开始:
- 2.0
- 作者:
- William G. Thompson, Jr., John A. Lewis
构造器概要
构造器 构造器 说明 PortletModeNameViewController()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidhandleActionRequest(ActionRequest request, ActionResponse response)Process the action request.ModelAndViewhandleRenderRequest(RenderRequest request, RenderResponse response)Process the render request and return a ModelAndView object which the DispatcherPortlet will render.
构造器详细资料
PortletModeNameViewController
public PortletModeNameViewController()
方法详细资料
handleActionRequest
public void handleActionRequest(ActionRequest request, ActionResponse response) throws Exception
从接口复制的说明:ControllerProcess the action request. There is nothing to return.- 指定者:
handleActionRequest在接口中Controller- 参数:
request- current portlet action requestresponse- current portlet action response- 抛出:
Exception- in case of errors
handleRenderRequest
public ModelAndView handleRenderRequest(RenderRequest request, RenderResponse response)
从接口复制的说明:ControllerProcess the render request and return a ModelAndView object which the DispatcherPortlet will render. Anullreturn value is not an error: It indicates that this object completed request processing itself, thus there is no ModelAndView to render.- 指定者:
handleRenderRequest在接口中Controller- 参数:
request- current portlet render requestresponse- current portlet render response- 返回:
- a ModelAndView to render, or null if handled directly