Class AbstractDeploymentConfiguration
- java.lang.Object
-
- com.vaadin.server.AbstractDeploymentConfiguration
-
- All Implemented Interfaces:
DeploymentConfiguration,Serializable
- Direct Known Subclasses:
DefaultDeploymentConfiguration
public abstract class AbstractDeploymentConfiguration extends Object implements DeploymentConfiguration
An abstract base class for DeploymentConfiguration implementations. This class provides default implementation for common config properties.- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractDeploymentConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassLoaderName()Gets class loader configuration option value.StringgetResourcesPath()Gets resources path configuration option value.StringgetUIClassName()Gets UI class configuration option value.StringgetUIProviderClassName()Gets UI provider class configuration option value.intgetUIProviderPriority()Get the priority of the designated/default UI provider.Set<String>getUrlSafeSchemes()Returns the set of URL schemes considered safe in URLs set on components usingExternalResource(such asImage,Link, andFileDownloader) as well as methods such asPage.open(String, String)andPage.setLocation(String).StringgetWidgetset(String defaultValue)Gets Widgetset configuration option value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.server.DeploymentConfiguration
getApplicationOrSystemProperty, getHeartbeatInterval, getInitParameters, getMaxRequestBodySize, getPushMode, getResourceCacheTime, isCloseIdleSessions, isProductionMode, isSendUrlsAsParameters, isSyncIdCheckEnabled, isXsrfProtectionEnabled
-
-
-
-
Method Detail
-
getUIClassName
public String getUIClassName()
Description copied from interface:DeploymentConfigurationGets UI class configuration option value.- Specified by:
getUIClassNamein interfaceDeploymentConfiguration- Returns:
- UI class name
-
getUIProviderClassName
public String getUIProviderClassName()
Description copied from interface:DeploymentConfigurationGets UI provider class configuration option value.- Specified by:
getUIProviderClassNamein interfaceDeploymentConfiguration- Returns:
- UI class name
-
getUIProviderPriority
public int getUIProviderPriority()
Description copied from interface:DeploymentConfigurationGet the priority of the designated/default UI provider. Higher values are served first. The default value of 0 retains old behavior.- Specified by:
getUIProviderPriorityin interfaceDeploymentConfiguration- Returns:
- UI provider priority (defaults to 0)
-
getWidgetset
public String getWidgetset(String defaultValue)
Description copied from interface:DeploymentConfigurationGets Widgetset configuration option value.defaultValueis returned if widgetset parameter is not configured.- Specified by:
getWidgetsetin interfaceDeploymentConfiguration- Returns:
- UI class name
-
getResourcesPath
public String getResourcesPath()
Description copied from interface:DeploymentConfigurationGets resources path configuration option value.- Specified by:
getResourcesPathin interfaceDeploymentConfiguration
-
getClassLoaderName
public String getClassLoaderName()
Description copied from interface:DeploymentConfigurationGets class loader configuration option value.- Specified by:
getClassLoaderNamein interfaceDeploymentConfiguration
-
getUrlSafeSchemes
public Set<String> getUrlSafeSchemes()
Description copied from interface:DeploymentConfigurationReturns the set of URL schemes considered safe in URLs set on components usingExternalResource(such asImage,Link, andFileDownloader) as well as methods such asPage.open(String, String)andPage.setLocation(String).Concrete implementations read this from the
Constants.URL_SAFE_SCHEMESproperty; the default returns a singleton set ofConstants.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, andPage#setLocation, and bypass e.g.Imageand download handling. Also, starting from Vaadin 25.2, the default safe schemes arehttp,https,mailto,telandftp). Script-capable schemes such asjavascriptanddataare 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:
getUrlSafeSchemesin interfaceDeploymentConfiguration- Returns:
- the set of safe URL schemes, never
null
-
-