Class ControlPanelUtils

java.lang.Object
io.micronaut.controlpanel.util.ControlPanelUtils

@Internal public final class ControlPanelUtils extends Object
Utility class.
  • 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 null
      controlPanelPath - the control panel path component; must not be null
      Returns:
      the computed control panel path as a non-null string