Class VaadinConfigurationProperties

java.lang.Object
com.vaadin.flow.spring.VaadinConfigurationProperties

@ConfigurationProperties(prefix="vaadin") public class VaadinConfigurationProperties extends Object
Configuration properties for Vaadin Spring Boot.
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • VaadinConfigurationProperties

      public VaadinConfigurationProperties()
  • Method Details

    • getUrlMapping

      public static String getUrlMapping(org.springframework.core.env.Environment environment)
      Gets the url mapping using the given environment. This is needed only when VaadinConfigurationProperties is not available for injection, e.g. in a condition.
      Parameters:
      environment - the application environment
      Returns:
      the url mapping or null if none is defined
    • getExcludedUrls

      public static List<String> getExcludedUrls(org.springframework.core.env.Environment environment)
      Gets the excluded URLs using the given environment. This is needed only when VaadinConfigurationProperties is not available for injection, e.g. when using Spring without Boot.
      Parameters:
      environment - the application environment
      Returns:
      the excluded URLs or null if none is defined
    • getUrlMapping

      public String getUrlMapping()
      Gets the url mapping for the Vaadin servlet.
      Returns:
      the url mapping
    • setUrlMapping

      public void setUrlMapping(String urlMapping)
      Sets urlMapping property value.
      Parameters:
      urlMapping - the urlMapping property value
    • isAsyncSupported

      public boolean isAsyncSupported()
      Returns if asynchronous operations are supported.
      Returns:
      if async is supported
    • setAsyncSupported

      public void setAsyncSupported(boolean asyncSupported)
      Sets asyncSupported property value.
      Parameters:
      asyncSupported - the asyncSupported property value
    • isLoadOnStartup

      public boolean isLoadOnStartup()
      Returns if servlet is loaded on startup.

      If the servlet is not loaded on startup then the first request to the server might be incorrectly handled by VaadinWebSecurity and access to a public view will be denied instead of allowed.

      Returns:
      if servlet is loaded on startup
    • setLoadOnStartup

      public void setLoadOnStartup(boolean loadOnStartup)
      Sets whether servlet is loaded on startup.

      If the servlet is not loaded on startup then the first request to the server might be incorrectly handled by VaadinWebSecurity and access to a public view will be denied instead of allowed.

      Parameters:
      loadOnStartup - true to load the servlet on startup, false otherwise
    • isLaunchBrowser

      public boolean isLaunchBrowser()
      Returns if a browser should be launched on startup when in development mode.

      Returns:
      if a browser should be launched on startup when in development mode
    • setLaunchBrowser

      public void setLaunchBrowser(boolean launchBrowser)
      Sets whether a browser should be launched on startup when in development mode.
      Parameters:
      launchBrowser - true to launch a browser on startup when in development mode, false otherwise
    • getBlacklistedPackages

      public List<String> getBlacklistedPackages()
      Get a list of packages that are blacklisted for class scanning.
      Returns:
      package blacklist
    • setBlacklistedPackages

      public void setBlacklistedPackages(List<String> blacklistedPackages)
      Set list of packages to ignore for class scanning.
      Parameters:
      blacklistedPackages - list of packages to ignore
    • getWhitelistedPackages

      public List<String> getWhitelistedPackages()
      Get a list of packages that are white-listed for class scanning.
      Returns:
      package white-list
    • setWhitelistedPackages

      public void setWhitelistedPackages(List<String> whitelistedPackages)
      Set list of packages to be scanned. If whitelistedPackages is set then blacklistedPackages is ignored.
      Parameters:
      whitelistedPackages - list of packages to be scanned
    • getExcludeUrls

      public List<String> getExcludeUrls()
      Get a list of URL patterns that are not handled by the Vaadin servlet when it is mapped to the context root.
      Returns:
      a list of url patterns to exclude
    • setExcludeUrls

      public void setExcludeUrls(List<String> excludeUrls)
      Set a list of URL patterns that are not handled by the Vaadin servlet when it is mapped to the context root.
      Parameters:
      excludeUrls - a list of url patterns to exclude
    • getPnpm

      Gets the pnpm specific configuration.
      Returns:
      the pnpm configuration
    • getFrontend

      Gets the frontend specific configuration.
      Returns:
      the frontend configuration