Class GlobalController
java.lang.Object
tech.ailef.dbadmin.external.controller.GlobalController
This class registers some ModelAttribute objects that are
used in all templates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe baseUrl as specified in the properties file by the usergetQueryParams
(jakarta.servlet.http.HttpServletRequest request) A multi valued map containing the query parameters.getRequestUrl
(jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
GlobalController
public GlobalController()
-
-
Method Details
-
getQueryParams
@ModelAttribute("queryParams") public Map<String,String[]> getQueryParams(jakarta.servlet.http.HttpServletRequest request) A multi valued map containing the query parameters. It is used primarily in building complex URL when performing faceted search with multiple filters.- Parameters:
request
- the incoming request- Returns:
- multi valued map of request parameters
-
getBaseUrl
The baseUrl as specified in the properties file by the user- Returns:
-
getRequestUrl
@ModelAttribute("requestUrl") public String getRequestUrl(jakarta.servlet.http.HttpServletRequest request) -
getUserConf
-