Package com.vaadin.flow.server
Class InitParameters
java.lang.Object
com.vaadin.flow.server.InitParameters
- All Implemented Interfaces:
Serializable
Constants for all servlet init parameters. Keeping them in a separate class
allows using reflection to expose the parameters in the Spring add-on.
Note: do not add other constants than String constants representing init parameters here.
- Since:
- Author:
- Vaadin Ltd
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPackages, in addition to the internally used ones, to run postinstall scripts for.static final StringConfiguration name for setting the application identifier.static final StringConfiguration parameter name for enabling component tracking in development mode.static final StringConfiguration parameter name for enabling session serialization in development.static final StringConfiguration name for the build folder.static final StringConfiguration name for enabling ci build for npm/pnpm.static final StringConfiguration name for cleaning or leaving frontend files in build.static final StringConfiguration name to enable adding a commercial banner to the application when commercial components are used without a valid license key.static final StringConfiguration name for the parameter that sets the compiled web components path.static final StringConfiguration name for forcing optimized production bundle build.static final StringConfiguration name for the parameter that determines if Flow should automatically register servlets needed for the application to work.static final StringConfiguration name for forcing optimized production bundle build.static final StringConfiguration parameter name for adding extra file extensions for stats bundle to generate hashes for.static final StringConfiguration name for enabling development using the frontend development server instead of using an application bundle.static final StringConfiguration name for adding dependencies on other projects when using the frontend development server.static final StringI18N provider property.static final StringConfiguration name for how long since last browser open before we open a new tab for the application in development mode.static final StringMenu access control property.static final StringConfiguration parameter name for requiring node executable installed in home directory.static final Stringstatic final Stringstatic final StringConfiguration name for excluding npm packages for web components.static final Stringstatic final StringConfiguration parameter name for requiring node executable installed in home directory.static final StringConfiguration name for the parameter that determines whether Brotli compression should be used for static resources in cases when a precompressed file is available.static final Stringstatic final StringConfiguration parameter name for enabling dev tools.static final StringConfiguration parameter name for enabling live reload.static final StringA comma separated list of IP addresses, potentially with wildcards, which can connect to the dev tools.static final StringBoolean parameter for enabling/disabling bytecode scanning in dev mode.static final StringThe name of the custom HTTP header that contains the client IP address that is checked to allow access to the dev mode server.static final Stringstatic final StringConfiguration name for the time waiting for the frontend build tool to output a success or error pattern.static final StringConfiguration name for adding extra options to the vite.static final Stringstatic final StringConfiguration parameter name for enabling bun.static final StringDeprecated.static final StringConfiguration parameter name for enabling pnpm.static final StringConfiguration parameter name for using globally installed pnpm or default one.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringConfiguration name for the frontend statistics json file to use to determine template contents.static final Stringstatic final Stringstatic final StringConfiguration name for disabling dev bundle rebuild.static final StringThe name of the parameter that is by default used in e.g. web.xml to define the name of the defaultUIclass. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
UI_PARAMETER
The name of the parameter that is by default used in e.g. web.xml to define the name of the defaultUIclass.- See Also:
-
SERVLET_PARAMETER_PRODUCTION_MODE
- See Also:
-
SERVLET_PARAMETER_INITIAL_UIDL
- See Also:
-
SERVLET_PARAMETER_ENABLE_DEV_SERVER
Deprecated.Enable dev server is deprecated. useFRONTEND_HOTDEPLOY- See Also:
-
SERVLET_PARAMETER_REUSE_DEV_SERVER
- See Also:
-
SERVLET_PARAMETER_REQUEST_TIMING
- See Also:
-
SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION
- See Also:
-
SERVLET_PARAMETER_HEARTBEAT_INTERVAL
- See Also:
-
SERVLET_PARAMETER_WEB_COMPONENT_DISCONNECT
- See Also:
-
SERVLET_PARAMETER_CLOSE_IDLE_SESSIONS
- See Also:
-
SERVLET_PARAMETER_PUSH_MODE
- See Also:
-
SERVLET_PARAMETER_SESSION_LOCK_CHECK_STRATEGY
- See Also:
-
SERVLET_PARAMETER_PUSH_SERVLET_MAPPING
- See Also:
-
SERVLET_PARAMETER_SYNC_ID_CHECK
- See Also:
-
SERVLET_PARAMETER_SEND_URLS_AS_PARAMETERS
- See Also:
-
SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING
- See Also:
-
SERVLET_PARAMETER_MAX_MESSAGE_SUSPEND_TIMEOUT
- See Also:
-
SERVLET_PARAMETER_JSBUNDLE
- See Also:
-
SERVLET_PARAMETER_POLYFILLS
- See Also:
-
NODE_VERSION
- See Also:
-
NODE_DOWNLOAD_ROOT
- See Also:
-
REACT_ENABLE
- See Also:
-
SERVLET_PARAMETER_BROTLI
Configuration name for the parameter that determines whether Brotli compression should be used for static resources in cases when a precompressed file is available.- See Also:
-
SERVLET_PARAMETER_STATISTICS_JSON
Configuration name for the frontend statistics json file to use to determine template contents.File needs to be available either for the ClassLoader as a resource, or as a static web resource. By default it returns the value in
Constants.STATISTICS_JSON_DEFAULT- See Also:
-
SERVLET_PARAMETER_DEVMODE_TIMEOUT
Configuration name for the time waiting for the frontend build tool to output a success or error pattern.- See Also:
-
SERVLET_PARAMETER_DEVMODE_VITE_OPTIONS
Configuration name for adding extra options to the vite.- See Also:
-
SERVLET_PARAMETER_DEVMODE_OPTIMIZE_BUNDLE
Boolean parameter for enabling/disabling bytecode scanning in dev mode. If enabled, entry points are scanned for reachable frontend resources. If disabled, all classes on the classpath are scanned.- See Also:
-
SERVLET_PARAMETER_DEVMODE_HOSTS_ALLOWED
A comma separated list of IP addresses, potentially with wildcards, which can connect to the dev tools. If not specified, only localhost connections are allowed.- See Also:
-
SERVLET_PARAMETER_DEVMODE_REMOTE_ADDRESS_HEADER
The name of the custom HTTP header that contains the client IP address that is checked to allow access to the dev mode server. The HTTP header is supposed to contain a single address, and the HTTP request to have a single occurrence of the header. If not specified, remote address are read from the X-Forwarded-For header.- See Also:
-
SERVLET_PARAMETER_ENABLE_PNPM
Configuration parameter name for enabling pnpm.- Since:
- 2.2
- See Also:
-
SERVLET_PARAMETER_ENABLE_BUN
Configuration parameter name for enabling bun.- See Also:
-
SERVLET_PARAMETER_DEVMODE_STATISTICS
- See Also:
-
SERVLET_PARAMETER_GLOBAL_PNPM
Configuration parameter name for using globally installed pnpm or default one.- See Also:
-
SERVLET_PARAMETER_DEVMODE_ENABLE_LIVE_RELOAD
Configuration parameter name for enabling live reload.Note that if the dev tools are disabled (
SERVLET_PARAMETER_DEVMODE_ENABLE_DEV_TOOLSis set tofalse), the live reload will be disabled as well.- Since:
- See Also:
-
SERVLET_PARAMETER_DEVMODE_ENABLE_DEV_TOOLS
Configuration parameter name for enabling dev tools.- Since:
- 9.0
- See Also:
-
APPLICATION_PARAMETER_DEVMODE_ENABLE_SERIALIZE_SESSION
Configuration parameter name for enabling session serialization in development. If enabled, all the session's associatedUIinstances will be serialized. Otherwise, it won't be serialized.- Since:
- See Also:
-
APPLICATION_PARAMETER_DEVMODE_ENABLE_COMPONENT_TRACKER
Configuration parameter name for enabling component tracking in development mode. If not set, tracking is enabled by default.- Since:
- See Also:
-
FRONTEND_EXTRA_EXTENSIONS
Configuration parameter name for adding extra file extensions for stats bundle to generate hashes for.- See Also:
-
I18N_PROVIDER
I18N provider property.- See Also:
-
MENU_ACCESS_CONTROL
Menu access control property.- See Also:
-
DISABLE_AUTOMATIC_SERVLET_REGISTRATION
Configuration name for the parameter that determines if Flow should automatically register servlets needed for the application to work.- See Also:
-
REQUIRE_HOME_NODE_EXECUTABLE
Configuration parameter name for requiring node executable installed in home directory.- Since:
- See Also:
-
NODE_AUTO_UPDATE
Configuration parameter name for requiring node executable installed in home directory.- Since:
- See Also:
-
COMPILED_WEB_COMPONENTS_PATH
Configuration name for the parameter that sets the compiled web components path. The path should be the same aswebComponentOutputDirectoryNamein the maven plugin that transpiles ES6 code. This path is only used for generated web components (server side web components) module in case they are transpiled: web component UI imports them as dependencies.- See Also:
-
BUILD_FOLDER
Configuration name for the build folder.- Since:
- See Also:
-
ADDITIONAL_POSTINSTALL_PACKAGES
Packages, in addition to the internally used ones, to run postinstall scripts for.- Since:
- See Also:
-
FRONTEND_HOTDEPLOY
Configuration name for enabling development using the frontend development server instead of using an application bundle.- See Also:
-
FRONTEND_HOTDEPLOY_DEPENDENCIES
Configuration name for adding dependencies on other projects when using the frontend development server.- See Also:
-
CI_BUILD
Configuration name for enabling ci build for npm/pnpm.- See Also:
-
SKIP_DEV_BUNDLE_REBUILD
Configuration name for disabling dev bundle rebuild.- See Also:
-
FORCE_PRODUCTION_BUILD
Configuration name for forcing optimized production bundle build.- See Also:
-
COMPRESS_BUNDLE
Configuration name for forcing optimized production bundle build.- See Also:
-
COMMERCIAL_WITH_BANNER
Configuration name to enable adding a commercial banner to the application when commercial components are used without a valid license key.- See Also:
-
CLEAN_BUILD_FRONTEND_FILES
Configuration name for cleaning or leaving frontend files in build.- See Also:
-
LAUNCH_BROWSER_DELAY
Configuration name for how long since last browser open before we open a new tab for the application in development mode. Time is given in minutes.- See Also:
-
APPLICATION_IDENTIFIER
Configuration name for setting the application identifier.- See Also:
-
NPM_EXCLUDE_WEB_COMPONENTS
Configuration name for excluding npm packages for web components.- See Also:
-
-
Constructor Details
-
InitParameters
public InitParameters()
-