Class AppController

java.lang.Object
org.spincast.quickstart.controller.AppController

public class AppController extends Object
The application controller.
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
  • Constructor Details

    • AppController

      @Inject public AppController(AppConfig appConfig)
  • Method Details

    • getAppConfig

      protected AppConfig getAppConfig()
    • addCommonModelElements

      protected void addCommonModelElements(AppRequestContext context)
      Adds some common elements to the response's model.
    • index

      public void index(AppRequestContext context)
      Index page handler
    • formExample

      public void formExample(AppRequestContext context)
      Simple Form example handler
    • exceptionExample

      public void exceptionExample(AppRequestContext context)
      "Exception example" handler
    • notFound

      public void notFound(AppRequestContext context)
      Route Handler to manage 404
    • exception

      public void exception(AppRequestContext context)
      Route Handler to manage exceptions