Package io.micronaut.controlpanel.util
Class ControlPanelUtils
java.lang.Object
io.micronaut.controlpanel.util.ControlPanelUtils
Utility class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull String
computeControlPanelPath
(@NonNull String appPath, @NonNull String controlPanelPath) Computes the full path for a control panel by normalizing and combining the application path and control panel path.
-
Method Details
-
computeControlPanelPath
@NonNull public static @NonNull String computeControlPanelPath(@NonNull @NonNull String appPath, @NonNull @NonNull String controlPanelPath) Computes the full path for a control panel by normalizing and combining the application path and control panel path. The resulting path is prefixed with a forward slash and formatted as "/appPath/controlPanelPath" if appPath is non-empty, or "/controlPanelPath" if appPath is empty or blank.- Parameters:
appPath
- the application path component; must not be nullcontrolPanelPath
- the control panel path component; must not be null- Returns:
- the computed control panel path as a non-null string
-