Class Login

All Implemented Interfaces:
spark.Route

public class Login extends HTMLTemplateRoute
The Login class handles the GET request for displaying the login page.
  • Constructor Details

    • Login

      public Login(App app)
      Constructs a Login route with the specified application.
      Parameters:
      app - the application instance
  • Method Details

    • getHTMLTemplatePath

      public String getHTMLTemplatePath(spark.Request request)
      Returns the path to the HTML template for the login page.
      Specified by:
      getHTMLTemplatePath in class HTMLTemplateRoute
      Parameters:
      request - the HTTP request
      Returns:
      the path to the HTML template
    • getNotificationDefinitions

      public Map<String,String> getNotificationDefinitions()
      Description copied from class: HTMLTemplateRoute
      Returns a map of notification definitions to be used in the Jinjava HTML template. Intended to be overridden by subclasses, providing their own definitions based on all redirects which point the user to the route with any error or success tags.
      Overrides:
      getNotificationDefinitions in class HTMLTemplateRoute
      Returns:
      the definitions as an URL name-notification message map.