Package com.vaadin.flow.internal.hilla
Interface FileRouterRequestUtil
@NullMarked
public interface FileRouterRequestUtil
A container for utility methods related with Hilla file-based router.
For internal use only. May be renamed or removed in a future release.
- Since:
- 24.4
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptiongetAllowedAuthorities(jakarta.servlet.http.HttpServletRequest request) Gets the set of authorities that are allowed to access the given request.booleanisAnonymousRoute(jakarta.servlet.http.HttpServletRequest request) Checks if the given request goes to a route that allows anonymous access.booleanisRouteAllowed(jakarta.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.booleanisSecuredRoute(jakarta.servlet.http.HttpServletRequest request) Checks if the given request goes to a route that requires authentication.
-
Method Details
-
isRouteAllowed
@Deprecated(since="25.0", forRemoval=true) boolean isRouteAllowed(jakarta.servlet.http.HttpServletRequest request) Deprecated, for removal: This API element is subject to removal in a future version.useisAnonymousRoute(HttpServletRequest)to match requests to anonymous routesChecks if the request corresponds to a Hilla route and, if so, applies the corresponding access control.- Parameters:
request- the HTTP request to check- Returns:
trueif the request is allowed,falseotherwise
-
isAnonymousRoute
boolean isAnonymousRoute(jakarta.servlet.http.HttpServletRequest request) Checks if the given request goes to a route that allows anonymous access.- Parameters:
request- the HTTP request to check- Returns:
trueif the request is targeting a route that allows anonymous access,falseotherwise
-
isSecuredRoute
boolean isSecuredRoute(jakarta.servlet.http.HttpServletRequest request) Checks if the given request goes to a route that requires authentication.- Parameters:
request- the HTTP request to check- Returns:
trueif the request is targeting a route that requires authentication,falseotherwise
-
getAllowedAuthorities
Gets the set of authorities that are allowed to access the given request.- Parameters:
request- the HTTP request to check- Returns:
- the set of authorities that are allowed to access the given request, or an empty set if no authority is required
-
isAnonymousRoute(HttpServletRequest)to match requests to anonymous routes