public class RouteUtil extends Object
For internal use only. May be renamed or removed in a future release.
| Modifier | Constructor and Description |
|---|---|
protected |
RouteUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<Class<? extends RouterLayout>> |
getParentLayouts(Class<?> component,
String path)
Get parent layouts for navigation target according to the
Route
or RouteAlias annotation. |
static List<Class<? extends RouterLayout>> |
getParentLayoutsForNonRouteTarget(Class<?> navigationTarget)
Collect possible route parent layouts for a navigation target that is not
annotated with
Route nor RouteAlias, but may still
contain ParentLayout. |
static String |
getRouteAliasPath(Class<?> component,
RouteAlias alias)
Get the actual route path including all parent layout
RoutePrefix. |
static String |
getRoutePath(Class<?> component,
Route route)
Get the actual route path including all parent layout
RoutePrefix. |
static Class<? extends RouterLayout> |
getTopParentLayout(Class<?> component,
String path)
Get the top most parent layout for navigation target according to the
Route or RouteAlias annotation. |
static String |
resolve(Class<?> component,
Route route)
Gets the effective route path value of the annotated class.
|
public static List<Class<? extends RouterLayout>> getParentLayouts(Class<?> component, String path)
Route
or RouteAlias annotation.component - navigation target to get parents forpath - path used to get navigation target so we know which annotation
to handlepublic static String getRoutePath(Class<?> component, Route route)
RoutePrefix.component - navigation target component to get route path forroute - route annotation to checkpublic static String getRouteAliasPath(Class<?> component, RouteAlias alias)
RoutePrefix.component - navigation target component to get route path foralias - route alias annotation to checkpublic static List<Class<? extends RouterLayout>> getParentLayoutsForNonRouteTarget(Class<?> navigationTarget)
Route nor RouteAlias, but may still
contain ParentLayout. Mainly error navigation targets.navigationTarget - route to check parent layouts forpublic static Class<? extends RouterLayout> getTopParentLayout(Class<?> component, String path)
Route or RouteAlias annotation. Also handles non route
targets with ParentLayout.component - navigation target to get top most parent forpath - path used to get navigation target so we know which annotation
to handle or null for error views.public static String resolve(Class<?> component, Route route)
component - the component where the route points toroute - the annotationCopyright © 2025. All rights reserved.