Class RuntimeConfigController
java.lang.Object
com.google.adk.web.controller.RuntimeConfigController
Serves the dev UI's runtime configuration, shadowing the copy bundled in the static assets so
adk.web.backend-url can point the UI at the address browsers reach this server on. The
bundled document is merged rather than replaced, so keys the UI gains in a later bundle survive.-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeConfigController(org.springframework.core.io.ResourceLoader resourceLoader, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Nullable String webUiDir, BackendUrl backendUrl) Reads the bundled config throughresourceLoader, or fromwebUiDirif set. -
Method Summary
Modifier and TypeMethodDescriptionServes the bundled config withbackendUrltaken from configuration when set.
-
Constructor Details
-
RuntimeConfigController
@Autowired public RuntimeConfigController(org.springframework.core.io.ResourceLoader resourceLoader, com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Value("${adk.web.ui.dir:#{null}}") @Nullable String webUiDir, BackendUrl backendUrl) Reads the bundled config throughresourceLoader, or fromwebUiDirif set.
-
-
Method Details
-
runtimeConfig
-