org.riotfamily.pages.controller
Class LeafSwitchController

java.lang.Object
  extended by 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]

Constructor Summary
LeafSwitchController()
           
 
Method Summary
 ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
           
 void setLeafController(Controller leafController)
           
 void setNodeController(Controller nodeController)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeafSwitchController

public LeafSwitchController()
Method Detail

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