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.
| Constructor and Description |
|---|
PortletModeNameViewController() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleActionRequest(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Process the action request.
|
ModelAndView |
handleRenderRequest(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
Process the render request and return a ModelAndView object which the DispatcherPortlet
will render.
|
public void handleActionRequest(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws Exception
ControllerhandleActionRequest in interface Controllerrequest - current portlet action requestresponse - current portlet action responseException - in case of errorspublic ModelAndView handleRenderRequest(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
Controllernull return value is not an error: It indicates that this
object completed request processing itself, thus there is no ModelAndView to render.handleRenderRequest in interface Controllerrequest - current portlet render requestresponse - current portlet render responseCopyright © 2015. All rights reserved.