We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.hilla.route.
Package com.vaadin.hilla.route
Class RouteUtil
java.lang.Object
com.vaadin.hilla.route.RouteUtil
All Implemented Interfaces:
A container for utility methods related with Routes.
For internal use only. May be renamed or removed in a future release.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AvailableViewInfo
getRouteByPath
(Map<String, AvailableViewInfo> availableRoutes, String path) Gets the client view configuration for the given route.
boolean
isRouteAllowed
(jakarta.servlet.http.HttpServletRequest request) Checks if the given request is allowed route to the user.
static void
removeChildren
(Map<String, AvailableViewInfo> configurations, AvailableViewInfo viewInfo, String parentPath)
-
Constructor Details
-
RouteUtil
public RouteUtil()
-
-
Method Details
-
isRouteAllowed
public boolean isRouteAllowed(jakarta.servlet.http.HttpServletRequest request) Checks if the given request is allowed route to the user.
Specified by:
isRouteAllowed
in interfaceFileRouterRequestUtil
Parameters:
request
- the HTTP request to checkReturns:
true
if the request goes allowed route,false
otherwise -
getRouteByPath
protected AvailableViewInfo getRouteByPath(Map<String, AvailableViewInfo> availableRoutes, String path) Gets the client view configuration for the given route.
Parameters:
path
- the URL path to get the client view configuration forReturns:
- the client view configuration for the given route
-