Class AbstractDeploymentConfiguration

    • Constructor Detail

      • AbstractDeploymentConfiguration

        public AbstractDeploymentConfiguration()
    • Method Detail

      • getUIProviderPriority

        public int getUIProviderPriority()
        Description copied from interface: DeploymentConfiguration
        Get the priority of the designated/default UI provider. Higher values are served first. The default value of 0 retains old behavior.
        Specified by:
        getUIProviderPriority in interface DeploymentConfiguration
        Returns:
        UI provider priority (defaults to 0)
      • getUrlSafeSchemes

        public Set<String> getUrlSafeSchemes()
        Description copied from interface: DeploymentConfiguration
        Returns the set of URL schemes considered safe in URLs set on components using ExternalResource (such as Image, Link, and FileDownloader) as well as methods such as Page.open(String, String) and Page.setLocation(String).

        Concrete implementations read this from the Constants.URL_SAFE_SCHEMES property; the default returns a singleton set of Constants.URL_SAFE_SCHEMES_WILDCARD, which bypasses the validation and allows all URLs.

        Note: the default and how it's applied changes in modern Vaadin versions. As of July 2026, the Flow versions that support this feature only apply the validation to Anchor, IFrame, Page#open, and Page#setLocation, and bypass e.g. Image and download handling. Also, starting from Vaadin 25.2, the default safe schemes are http, https, mailto, tel and ftp). Script-capable schemes such as javascript and data are intentionally excluded from the Vaadin 25.2 safe URL schemes. Because of technical differences in how Flow and Vaadin 8 handle URLs it is not possible to target the exact same classes here. The wildcard default in versions before Vaadin 25.2 was chosen for backwards compatibility.

        Specified by:
        getUrlSafeSchemes in interface DeploymentConfiguration
        Returns:
        the set of safe URL schemes, never null