Class HomeController


  • @Controller
    public class HomeController
    extends java.lang.Object
    The controller that deals with the homepage for anonymous users
    • Constructor Summary

      Constructors 
      Constructor Description
      HomeController()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String index​(WebmasterProperties webmasterProperties, org.springframework.ui.Model model)
      Handles requests to the homepage, loads the contact details from the web master properties and redirects to the dashboard home if the user is logged in
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HomeController

        public HomeController()
    • Method Detail

      • index

        @RequestMapping("/")
        public java.lang.String index​(WebmasterProperties webmasterProperties,
                                      org.springframework.ui.Model model)
        Handles requests to the homepage, loads the contact details from the web master properties and redirects to the dashboard home if the user is logged in
        Parameters:
        webmasterProperties - details of the webmaster stored in the app properties
        model - holder for model attributes
        Returns:
        the path to the homepage