Package com.vaadin.flow.router
Class DefaultRoutePathProvider
java.lang.Object
com.vaadin.flow.router.DefaultRoutePathProvider
- All Implemented Interfaces:
RoutePathProvider
Default implementation for
RoutePathProvider.- Author:
- Vaadin Ltd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRoutePath(Class<?> navigationTarget) Produces a path for thenavigationTargetcomponent class.static StringgetRoutePath(String routeValue, Class<?> routeClass)
-
Constructor Details
-
DefaultRoutePathProvider
public DefaultRoutePathProvider()
-
-
Method Details
-
getRoutePath
Description copied from interface:RoutePathProviderProduces a path for thenavigationTargetcomponent class.- Specified by:
getRoutePathin interfaceRoutePathProvider- Parameters:
navigationTarget- a navigation target class- Returns:
- a route path for the navigation target, may be
nullif the provided class is not a navigation target
-
getRoutePath
-