org.riotfamily.pages.controller
Class LeafSwitchController
java.lang.Object
org.riotfamily.pages.controller.LeafSwitchController
- All Implemented Interfaces:
- Controller
public class LeafSwitchController
- extends Object
- implements Controller
Inspects the current page and delegates requests to the nodeController
if the page has child-pages or the leafController otherwise.
- Since:
- 6.5
- Author:
- Felix Gnass [fgnass at neteye dot de]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LeafSwitchController
public LeafSwitchController()
setLeafController
public void setLeafController(Controller leafController)
setNodeController
public void setNodeController(Controller nodeController)
handleRequest
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response)
throws Exception
- Specified by:
handleRequest
in interface Controller
- Throws:
Exception