Class DevUiAssets

java.lang.Object
com.google.adk.web.config.DevUiAssets

public final class DevUiAssets extends Object
Where the dev UI's static assets live. Shared so the resource handler and the runtime-config endpoint resolve the same location; normalizing adk.web.ui.dir separately in each would diverge silently.
  • Field Details

    • RUNTIME_CONFIG_PATH

      public static final String RUNTIME_CONFIG_PATH
      The runtime config, relative to the asset root.
      See Also:
  • Method Details

    • assetRoot

      public static String assetRoot(@Nullable String webUiDir)
      Returns the asset root: webUiDir as a file: URL when set, else the bundled classpath copy. Always ends in a slash.
    • assetLocation

      public static String assetLocation(@Nullable String webUiDir, String relativePath)
      The location of a single asset, given relative to the asset root.