Package io.github.sigmacasino.routes
Class Login
java.lang.Object
io.github.sigmacasino.HTTPRoute
io.github.sigmacasino.GetRoute
io.github.sigmacasino.HTMLTemplateRoute
io.github.sigmacasino.routes.Login
- All Implemented Interfaces:
spark.Route
The Login class handles the GET request for displaying the login 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 login 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
-
Login
Constructs a Login route with the specified application.- Parameters:
app
- the application instance
-
-
Method Details
-
getHTMLTemplatePath
Returns the path to the HTML template for the login 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.
-