Package com.vaadin.hilla.route
Class RouteUtil
java.lang.Object
com.vaadin.hilla.route.RouteUtil
- All Implemented Interfaces:
com.vaadin.flow.internal.hilla.FileRouterRequestUtil
@Component
public class RouteUtil
extends Object
implements com.vaadin.flow.internal.hilla.FileRouterRequestUtil
A container for utility methods related with Routes.
For internal use only. May be renamed or removed in a future release.
-
Constructor Summary
ConstructorsConstructorDescriptionRouteUtil(ClientRouteRegistry registry) Initializes a new instance of the RouteUtil class with the given registry. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisRouteAllowed(jakarta.servlet.http.HttpServletRequest request) Checks if the given request is allowed route to the user.
-
Constructor Details
-
RouteUtil
Initializes a new instance of the RouteUtil class with the given registry.- Parameters:
registry- - the registry to use
-
-
Method Details
-
isRouteAllowed
public boolean isRouteAllowed(jakarta.servlet.http.HttpServletRequest request) Checks if the given request is allowed route to the user.- Specified by:
isRouteAllowedin interfacecom.vaadin.flow.internal.hilla.FileRouterRequestUtil- Parameters:
request- the HTTP request to check- Returns:
trueif the request goes allowed route,falseotherwise
-