Package com.vaadin.flow.server
Class AbstractDeploymentConfiguration
- java.lang.Object
-
- com.vaadin.flow.server.AbstractPropertyConfiguration
-
- com.vaadin.flow.server.AbstractDeploymentConfiguration
-
- All Implemented Interfaces:
DeploymentConfiguration,AbstractConfiguration,Serializable
- Direct Known Subclasses:
PropertyDeploymentConfiguration
public abstract class AbstractDeploymentConfiguration extends AbstractPropertyConfiguration implements DeploymentConfiguration
An abstract base class for DeploymentConfiguration implementations. This class provides default implementation for common config properties.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDeploymentConfiguration(Map<String,String> properties)Creates a new configuration based onproperties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassLoaderName()Gets class loader configuration option value.StringgetUIClassName()Gets UI class configuration option value.Set<String>getUrlSafeSchemes()Returns the set of URL schemes considered safe in URLs set on components such asAnchor,IFrameand inPage.open(String, String).-
Methods inherited from class com.vaadin.flow.server.AbstractPropertyConfiguration
getApplicationOrSystemProperty, getApplicationProperty, getApplicationProperty, getBooleanProperty, getProperties, getStringProperty, getSystemProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.server.AbstractConfiguration
enableDevServer, getBuildFolder, getJavaResourceFolder, getStringProperty, isGlobalPnpm, isPnpmEnabled, isProductionMode, isUsageStatisticsEnabled, isXsrfProtectionEnabled, reuseDevServer, useV14Bootstrap
-
Methods inherited from interface com.vaadin.flow.function.DeploymentConfiguration
getApplicationOrSystemProperty, getBooleanProperty, getCompiledWebComponentsPath, getExternalStatsUrl, getHeartbeatInterval, getInitParameters, getMaxMessageSuspendTimeout, getMaxRequestBodySize, getPolyfills, getPushMode, getPushServletMapping, getWebComponentDisconnect, isBrotli, isCloseIdleSessions, isDevModeLiveReloadEnabled, isDevToolsEnabled, isEagerServerLoad, isRequestTiming, isSendUrlsAsParameters, isStatsExternal, isSyncIdCheckEnabled
-
-
-
-
Method Detail
-
getUIClassName
public String getUIClassName()
Description copied from interface:DeploymentConfigurationGets UI class configuration option value.- Specified by:
getUIClassNamein interfaceDeploymentConfiguration- Returns:
- UI class name
-
getClassLoaderName
public String getClassLoaderName()
Description copied from interface:DeploymentConfigurationGets class loader configuration option value.- Specified by:
getClassLoaderNamein interfaceDeploymentConfiguration- Returns:
- the configured class loader name
-
getUrlSafeSchemes
public Set<String> getUrlSafeSchemes()
Description copied from interface:DeploymentConfigurationReturns the set of URL schemes considered safe in URLs set on components such asAnchor,IFrameand inPage.open(String, String).Concrete implementations read this from the
InitParameters.URL_SAFE_SCHEMESproperty; the default returnsSet.of(Constants.URL_SAFE_SCHEMES_WILDCARD), which bypasses the validation and allows all URLs.Note: the default changes in future Flow versions. Starting from Flow 25.2, the default safe schemes are "http", "https", "mailto", "tel", "ftp". Script-capable schemes such as
javascriptanddatawill be intentionally excluded.- Specified by:
getUrlSafeSchemesin interfaceDeploymentConfiguration- Returns:
- the set of safe URL schemes, never
null
-
-