|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.portlet.mvc.PortletModeNameViewController
public class PortletModeNameViewController
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 Summary | |
---|---|
PortletModeNameViewController()
|
Method Summary | |
---|---|
void |
handleActionRequest(ActionRequest request,
ActionResponse response)
Process the action request. |
ModelAndView |
handleRenderRequest(RenderRequest request,
RenderResponse response)
Process the render request and return a ModelAndView object which the DispatcherPortlet will render. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortletModeNameViewController()
Method Detail |
---|
public void handleActionRequest(ActionRequest request, ActionResponse response) throws Exception
Controller
handleActionRequest
in interface Controller
request
- current portlet action requestresponse
- current portlet action response
Exception
- in case of errorspublic ModelAndView handleRenderRequest(RenderRequest request, RenderResponse response)
Controller
null
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 Controller
request
- current portlet render requestresponse
- current portlet render response
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |