@ConfigurationProperties(prefix="vaadin") public class VaadinConfigurationProperties extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VaadinConfigurationProperties.Pnpm |
| Constructor and Description |
|---|
VaadinConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllowedPackages()
Get a list of packages that are allowed for class scanning.
|
List<String> |
getBlacklistedPackages()
Deprecated.
use getBlockedPackages()
|
List<String> |
getBlockedPackages()
Get a list of packages that are blocked for class scanning.
|
String |
getUrlMapping()
Gets the url mapping for the Vaadin servlet.
|
List<String> |
getWhitelistedPackages()
Deprecated.
use getAllowedPackages()
|
boolean |
isAsyncSupported()
Returns if asynchronous operations are supported.
|
boolean |
isLaunchBrowser()
Returns if a browser should be launched on startup when in development
mode.
|
boolean |
isLoadOnStartup()
Returns if servlet is loaded on startup.
|
boolean |
isPnpmEnabled()
Returns if pnpm support is enabled.
|
void |
setAllowedPackages(List<String> allowedPackages)
Set list of packages to be scanned.
|
void |
setAsyncSupported(boolean asyncSupported)
Sets
asyncSupported property value. |
void |
setBlacklistedPackages(List<String> blockedPackages)
Deprecated.
use setBlockedPackages()
|
void |
setBlockedPackages(List<String> blockedPackages)
Set a list of packages to ignore for class scanning.
|
void |
setLaunchBrowser(boolean launchBrowser)
Sets whether a browser should be launched on startup when in development
mode.
|
void |
setLoadOnStartup(boolean loadOnStartup)
Sets whether servlet is loaded on startup.
|
void |
setPnpmEnabled(boolean enabled)
Enables/disabled pnpm support.
|
void |
setUrlMapping(String urlMapping)
Sets
urlMapping property value. |
void |
setWhitelistedPackages(List<String> allowedPackages)
Deprecated.
use setAllowedPackages()
|
public String getUrlMapping()
public void setUrlMapping(String urlMapping)
urlMapping property value.urlMapping - the urlMapping property valuepublic boolean isAsyncSupported()
public void setAsyncSupported(boolean asyncSupported)
asyncSupported property value.asyncSupported - the asyncSupported property valuepublic boolean isLoadOnStartup()
If the servlet is not loaded on startup then the first request to the
server might be incorrectly handled by
VaadinWebSecurityConfigurerAdapter
and access to a public view will be denied instead of allowed.
public void setLoadOnStartup(boolean loadOnStartup)
If the servlet is not loaded on startup then the first request to the
server might be incorrectly handled by
VaadinWebSecurityConfigurerAdapter
and access to a public view will be denied instead of allowed.
loadOnStartup - true to load the servlet on startup, false
otherwisepublic boolean isLaunchBrowser()
public void setLaunchBrowser(boolean launchBrowser)
launchBrowser - true to launch a browser on startup when in
development mode, false otherwisepublic boolean isPnpmEnabled()
public void setPnpmEnabled(boolean enabled)
enabled - if true then pnpm support is enabled, otherwise it's
disabled@Deprecated public List<String> getBlacklistedPackages()
public List<String> getBlockedPackages()
@Deprecated public void setBlacklistedPackages(List<String> blockedPackages)
blockedPackages - list of packages to ignorepublic void setBlockedPackages(List<String> blockedPackages)
blockedPackages - list of packages to ignore@Deprecated public List<String> getWhitelistedPackages()
public List<String> getAllowedPackages()
@Deprecated public void setWhitelistedPackages(List<String> allowedPackages)
allowedPackages
is set then blockedPackages is ignored.allowedPackages - list of packages to be scannedCopyright © 2024 Vaadin Ltd. All Rights Reserved.