Package io.github.sigmacasino.routes
Class Register
java.lang.Object
io.github.sigmacasino.HTTPRoute
io.github.sigmacasino.GetRoute
io.github.sigmacasino.HTMLTemplateRoute
io.github.sigmacasino.routes.Register
- All Implemented Interfaces:
spark.Route
The Register class handles the GET request for displaying the registration page.
-
Field Summary
Fields inherited from class io.github.sigmacasino.HTTPRoute
app, loginRequired, path
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHTMLTemplatePath
(spark.Request request) Returns the path to the HTML template for the registration page.Returns a map of notification definitions to be used in the Jinjava HTML template.Methods inherited from class io.github.sigmacasino.HTMLTemplateRoute
handleGet, populateContext
Methods inherited from class io.github.sigmacasino.GetRoute
handle, registerSparkRoute
-
Constructor Details
-
Register
Constructs a Register route with the specified application.- Parameters:
app
- the application instance
-
-
Method Details
-
getHTMLTemplatePath
Returns the path to the HTML template for the registration page.- Specified by:
getHTMLTemplatePath
in classHTMLTemplateRoute
- Parameters:
request
- the HTTP request- Returns:
- the path to the HTML template
-
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 classHTMLTemplateRoute
- Returns:
- the definitions as an URL name-notification message map.
-