Class Register

All Implemented Interfaces:
spark.Route

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

    • Register

      public Register(App app)
      Constructs a Register 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 registration 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.