类名:DevUiAssets

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

public final class DevUiAssets extends Object
开发人员使用的 UI 的静态资源存储在这里。这些资源被共享,以便资源处理程序(resource handler)和运行时配置端点(runtime-config endpoint)能够从同一个位置获取这些资源;这样做有助于实现资源管理的标准化。 adk.web.ui.dir 在每个(独立的)系统中,它们会各自独立地运行;它们的发展路径(或行为方式)会悄然地分道扬镳(即彼此之间不会产生任何影响或互动)。
  • 字段摘要

    Fields
    Modifier and Type
    Field
    Description
    static final String
    运行时配置(runtime config),相对于资产根目录(asset root)的位置而言。
  • 方法概述

    Modifier and Type
    Method
    Description
    static String
    assetLocation(@Nullable String webUiDir, String relativePath)
    单个资产的位置,是相对于该资产的根目录而言的。
    static String
    assetRoot(@Nullable String webUiDir)
    返回资产的根目录(即资产存储的起始位置)。 webUiDir 作为……;由于…… file: 如果设置了 URL,则使用该 URL;否则使用捆绑在一起的文件(即 classpath 中的文件)。

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详情

    • RUNTIME_CONFIG_PATH

      public static final String RUNTIME_CONFIG_PATH
      运行时配置(runtime config),相对于资产根目录(asset root)的位置而言。
      See Also:
  • 方法详细信息(Method Details)

    • assetRoot

      public static String assetRoot(@Nullable String webUiDir)
      返回资产的根目录(即资产存储的起始位置)。 webUiDir 作为……;由于…… file: 如果设置了 URL,则使用该 URL;否则使用捆绑在一起的文件(即 classpath 中的文件)。文件名始终以斜杠(/)结尾。
    • assetLocation

      public static String assetLocation(@Nullable String webUiDir, String relativePath)
      单个资产的位置,是相对于该资产的根目录而言的。