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 Details

    • RouteUtil

      @Autowired public RouteUtil(ClientRouteRegistry registry)
      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:
      isRouteAllowed in interface com.vaadin.flow.internal.hilla.FileRouterRequestUtil
      Parameters:
      request - the HTTP request to check
      Returns:
      true if the request goes allowed route, false otherwise