Class BackendUrl

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

public final class BackendUrl extends Object
Parsed representation of adk.web.backend-url, shared by the runtime-config endpoint and the dev UI entry redirects.
  • Method Details

    • from

      public static BackendUrl from(@Nullable String configured)
      Parses configured. A URL the dev UI cannot use is ignored entirely, with a warning: it is neither served nor used as a prefix, so the bundled backendUrl stands. Serving it would publish whatever it contains, credentials included, to every browser.
    • value

      public String value()
      Returns the URL to report in runtime-config.json, or empty when unset or ignored.
    • pathPrefix

      public String pathPrefix()
      Returns the URL path prefix to prepend to the entry redirect, or empty if unset or ignored. Preserves raw percent-encoding for use in a Location header.