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 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 the parameter that sets the compiled web components path.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 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 parameter name for requiring node executable installed in home directory.static final Stringstatic 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 StringBoolean parameter for enabling/disabling bytecode scanning in dev mode.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 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 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. -
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_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:
-
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_ENABLE_PNPM
Configuration parameter name for enabling pnpm.- Since:
- 2.2
- 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:
-
I18N_PROVIDER
I18N provider 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:
-
-
Constructor Details
-
InitParameters
public InitParameters()
-