Package com.vaadin.flow.server
Class InitParameters
- java.lang.Object
-
- com.vaadin.flow.server.InitParameters
-
- All Implemented Interfaces:
Serializable
public class InitParameters extends Object implements 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ADDITIONAL_POSTINSTALL_PACKAGES
Packages, in addition to the internally used ones, to run postinstall scripts for.static String
APPLICATION_PARAMETER_DEVMODE_ENABLE_SERIALIZE_SESSION
Configuration parameter name for enabling session serialization in development.static String
BUILD_FOLDER
Configuration name for the build folder.static String
COMPILED_WEB_COMPONENTS_PATH
Configuration name for the parameter that sets the compiled web components path.static String
DISABLE_AUTOMATIC_SERVLET_REGISTRATION
Configuration name for the parameter that determines if Flow should automatically register servlets needed for the application to work.static String
I18N_PROVIDER
I18N provider property.static String
NODE_AUTO_UPDATE
Configuration parameter name for requiring node executable installed in home directory.static String
NODE_DOWNLOAD_ROOT
static String
NODE_VERSION
static String
REQUIRE_HOME_NODE_EXECUTABLE
Configuration parameter name for requiring node executable installed in home directory.static String
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.static String
SERVLET_PARAMETER_CLOSE_IDLE_SESSIONS
static String
SERVLET_PARAMETER_DEVMODE_ENABLE_DEV_TOOLS
Configuration parameter name for enabling dev tools.static String
SERVLET_PARAMETER_DEVMODE_ENABLE_LIVE_RELOAD
Configuration parameter name for enabling live reload.static String
SERVLET_PARAMETER_DEVMODE_OPTIMIZE_BUNDLE
Boolean parameter for enabling/disabling bytecode scanning in dev mode.static String
SERVLET_PARAMETER_DEVMODE_STATISTICS
static String
SERVLET_PARAMETER_DEVMODE_VITE_OPTIONS
Configuration name for adding extra options to the vite.static String
SERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERN
Configuration name for the pattern used to inspect the webpack output to detecting when compilation failed.static String
SERVLET_PARAMETER_DEVMODE_WEBPACK_OPTIONS
Configuration name for adding extra options to the webpack-dev-server.static String
SERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERN
Configuration name for the pattern used to inspect the webpack output to assure it is up and running.static String
SERVLET_PARAMETER_DEVMODE_WEBPACK_TIMEOUT
Configuration name for the time waiting for webpack output success or error pattern defined inConstants.SERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERN
andConstants.SERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERN
parameters.static String
SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION
static String
SERVLET_PARAMETER_ENABLE_DEV_SERVER
static String
SERVLET_PARAMETER_ENABLE_PNPM
Configuration parameter name for enabling pnpm.static String
SERVLET_PARAMETER_GLOBAL_PNPM
Configuration parameter name for using globally installed pnpm or default one.static String
SERVLET_PARAMETER_HEARTBEAT_INTERVAL
static String
SERVLET_PARAMETER_INITIAL_UIDL
static String
SERVLET_PARAMETER_JSBUNDLE
static String
SERVLET_PARAMETER_MAX_MESSAGE_SUSPEND_TIMEOUT
static String
SERVLET_PARAMETER_POLYFILLS
static String
SERVLET_PARAMETER_PRODUCTION_MODE
static String
SERVLET_PARAMETER_PUSH_MODE
static String
SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING
static String
SERVLET_PARAMETER_PUSH_URL
static String
SERVLET_PARAMETER_REQUEST_TIMING
static String
SERVLET_PARAMETER_REUSE_DEV_SERVER
static String
SERVLET_PARAMETER_SEND_URLS_AS_PARAMETERS
static String
SERVLET_PARAMETER_STATISTICS_JSON
Configuration name for the WebPack profile statistics json file to use to determine template contents.static String
SERVLET_PARAMETER_SYNC_ID_CHECK
static String
SERVLET_PARAMETER_USE_V14_BOOTSTRAP
Enable it if your project is using client-side bootstrapping (CCDM).static String
SERVLET_PARAMETER_WEB_COMPONENT_DISCONNECT
static String
UI_PARAMETER
The name of the parameter that is by default used in e.g.
-
Constructor Summary
Constructors Constructor Description InitParameters()
-
-
-
Field Detail
-
UI_PARAMETER
public static final String UI_PARAMETER
The name of the parameter that is by default used in e.g. web.xml to define the name of the defaultUI
class.- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_PRODUCTION_MODE
public static final String SERVLET_PARAMETER_PRODUCTION_MODE
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_USE_V14_BOOTSTRAP
public static final String SERVLET_PARAMETER_USE_V14_BOOTSTRAP
Enable it if your project is using client-side bootstrapping (CCDM).- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_INITIAL_UIDL
public static final String SERVLET_PARAMETER_INITIAL_UIDL
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_ENABLE_DEV_SERVER
public static final String SERVLET_PARAMETER_ENABLE_DEV_SERVER
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_REUSE_DEV_SERVER
public static final String SERVLET_PARAMETER_REUSE_DEV_SERVER
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_REQUEST_TIMING
public static final String SERVLET_PARAMETER_REQUEST_TIMING
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION
public static final String SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_HEARTBEAT_INTERVAL
public static final String SERVLET_PARAMETER_HEARTBEAT_INTERVAL
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_WEB_COMPONENT_DISCONNECT
public static final String SERVLET_PARAMETER_WEB_COMPONENT_DISCONNECT
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_CLOSE_IDLE_SESSIONS
public static final String SERVLET_PARAMETER_CLOSE_IDLE_SESSIONS
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_PUSH_MODE
public static final String SERVLET_PARAMETER_PUSH_MODE
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_PUSH_URL
public static final String SERVLET_PARAMETER_PUSH_URL
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_SYNC_ID_CHECK
public static final String SERVLET_PARAMETER_SYNC_ID_CHECK
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_SEND_URLS_AS_PARAMETERS
public static final String SERVLET_PARAMETER_SEND_URLS_AS_PARAMETERS
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING
public static final String SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_MAX_MESSAGE_SUSPEND_TIMEOUT
public static final String SERVLET_PARAMETER_MAX_MESSAGE_SUSPEND_TIMEOUT
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_JSBUNDLE
public static final String SERVLET_PARAMETER_JSBUNDLE
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_POLYFILLS
public static final String SERVLET_PARAMETER_POLYFILLS
- See Also:
- Constant Field Values
-
NODE_VERSION
public static final String NODE_VERSION
- See Also:
- Constant Field Values
-
NODE_DOWNLOAD_ROOT
public static final String NODE_DOWNLOAD_ROOT
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_BROTLI
public static final String 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:
- Constant Field Values
-
SERVLET_PARAMETER_STATISTICS_JSON
public static final String SERVLET_PARAMETER_STATISTICS_JSON
Configuration name for the WebPack profile 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:
- Constant Field Values
-
SERVLET_PARAMETER_DEVMODE_WEBPACK_TIMEOUT
public static final String SERVLET_PARAMETER_DEVMODE_WEBPACK_TIMEOUT
Configuration name for the time waiting for webpack output success or error pattern defined inConstants.SERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERN
andConstants.SERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERN
parameters.- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERN
public static final String SERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERN
Configuration name for the pattern used to inspect the webpack output to assure it is up and running. Default value is: Compiled
.- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERN
public static final String SERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERN
Configuration name for the pattern used to inspect the webpack output to detecting when compilation failed. Default value is: Failed
.- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_DEVMODE_WEBPACK_OPTIONS
public static final String SERVLET_PARAMETER_DEVMODE_WEBPACK_OPTIONS
Configuration name for adding extra options to the webpack-dev-server.- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_DEVMODE_VITE_OPTIONS
public static final String SERVLET_PARAMETER_DEVMODE_VITE_OPTIONS
Configuration name for adding extra options to the vite.- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_DEVMODE_OPTIMIZE_BUNDLE
public static final String 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:
- Constant Field Values
-
SERVLET_PARAMETER_ENABLE_PNPM
public static final String SERVLET_PARAMETER_ENABLE_PNPM
Configuration parameter name for enabling pnpm.- Since:
- 2.2
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_DEVMODE_STATISTICS
public static final String SERVLET_PARAMETER_DEVMODE_STATISTICS
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_GLOBAL_PNPM
public static final String SERVLET_PARAMETER_GLOBAL_PNPM
Configuration parameter name for using globally installed pnpm or default one.- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_DEVMODE_ENABLE_LIVE_RELOAD
public static final String 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_TOOLS
is set tofalse
), the live reload will be disabled as well.- Since:
- See Also:
- Constant Field Values
-
SERVLET_PARAMETER_DEVMODE_ENABLE_DEV_TOOLS
public static final String SERVLET_PARAMETER_DEVMODE_ENABLE_DEV_TOOLS
Configuration parameter name for enabling dev tools.- Since:
- 9.0
- See Also:
- Constant Field Values
-
APPLICATION_PARAMETER_DEVMODE_ENABLE_SERIALIZE_SESSION
public static final String APPLICATION_PARAMETER_DEVMODE_ENABLE_SERIALIZE_SESSION
Configuration parameter name for enabling session serialization in development. If enabled, all the session's associatedUI
instances will be serialized. Otherwise, it won't be serialized.- Since:
- See Also:
- Constant Field Values
-
I18N_PROVIDER
public static final String I18N_PROVIDER
I18N provider property.- See Also:
- Constant Field Values
-
DISABLE_AUTOMATIC_SERVLET_REGISTRATION
public static final String 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:
- Constant Field Values
-
REQUIRE_HOME_NODE_EXECUTABLE
public static final String REQUIRE_HOME_NODE_EXECUTABLE
Configuration parameter name for requiring node executable installed in home directory.- Since:
- See Also:
- Constant Field Values
-
NODE_AUTO_UPDATE
public static final String NODE_AUTO_UPDATE
Configuration parameter name for requiring node executable installed in home directory.- Since:
- See Also:
- Constant Field Values
-
COMPILED_WEB_COMPONENTS_PATH
public static final String COMPILED_WEB_COMPONENTS_PATH
Configuration name for the parameter that sets the compiled web components path. The path should be the same aswebComponentOutputDirectoryName
in 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:
- Constant Field Values
-
BUILD_FOLDER
public static final String BUILD_FOLDER
Configuration name for the build folder.- Since:
- See Also:
- Constant Field Values
-
ADDITIONAL_POSTINSTALL_PACKAGES
public static final String ADDITIONAL_POSTINSTALL_PACKAGES
Packages, in addition to the internally used ones, to run postinstall scripts for.- Since:
- See Also:
- Constant Field Values
-
-