Class ER
java.lang.Object
io.github.sigmacasino.HTTPRoute
io.github.sigmacasino.GetRoute
io.github.sigmacasino.HTMLTemplateRoute
io.github.sigmacasino.routes.docs.ER
- All Implemented Interfaces:
spark.Route
The route for the ER diagrams 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 Jinjava HTML template.populateContext
(spark.Request request, spark.Response response) Returns additional context to populate the Jinjava HTML template with.Methods inherited from class io.github.sigmacasino.HTMLTemplateRoute
getNotificationDefinitions, handleGet
Methods inherited from class io.github.sigmacasino.GetRoute
handle, registerSparkRoute
-
Constructor Details
-
ER
-
-
Method Details
-
getHTMLTemplatePath
Description copied from class:HTMLTemplateRoute
Returns the path to the Jinjava HTML template.- Specified by:
getHTMLTemplatePath
in classHTMLTemplateRoute
-
populateContext
public Map<String,Object> populateContext(spark.Request request, spark.Response response) throws SQLException Description copied from class:HTMLTemplateRoute
Returns additional context to populate the Jinjava HTML template with. By default, it returns an empty map. Intended to be overriden by subclasses.- Overrides:
populateContext
in classHTMLTemplateRoute
- Parameters:
request
- the requestresponse
- the response- Returns:
- the context as a variable-value map
- Throws:
SQLException
- if a database access error occurs in any subclass implementation
-