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 StringADDITIONAL_POSTINSTALL_PACKAGESPackages, in addition to the internally used ones, to run postinstall scripts for.static StringAPPLICATION_PARAMETER_DEVMODE_ENABLE_SERIALIZE_SESSIONConfiguration parameter name for enabling session serialization in development.static StringBUILD_FOLDERConfiguration name for the build folder.static StringCI_BUILDConfiguration name for enabling ci build for npm/pnpm.static StringCOMPILED_WEB_COMPONENTS_PATHConfiguration name for the parameter that sets the compiled web components path.static StringDISABLE_AUTOMATIC_SERVLET_REGISTRATIONConfiguration name for the parameter that determines if Flow should automatically register servlets needed for the application to work.static StringI18N_PROVIDERI18N provider property.static StringNODE_AUTO_UPDATEConfiguration parameter name for requiring node executable installed in home directory.static StringNODE_DOWNLOAD_ROOTstatic StringNODE_VERSIONstatic StringREQUIRE_HOME_NODE_EXECUTABLEConfiguration parameter name for requiring node executable installed in home directory.static StringSERVLET_PARAMETER_BROTLIConfiguration name for the parameter that determines whether Brotli compression should be used for static resources in cases when a precompressed file is available.static StringSERVLET_PARAMETER_CLOSE_IDLE_SESSIONSstatic StringSERVLET_PARAMETER_DEVMODE_ENABLE_DEV_TOOLSConfiguration parameter name for enabling dev tools.static StringSERVLET_PARAMETER_DEVMODE_ENABLE_LIVE_RELOADConfiguration parameter name for enabling live reload.static StringSERVLET_PARAMETER_DEVMODE_OPTIMIZE_BUNDLEBoolean parameter for enabling/disabling bytecode scanning in dev mode.static StringSERVLET_PARAMETER_DEVMODE_STATISTICSstatic StringSERVLET_PARAMETER_DEVMODE_VITE_OPTIONSConfiguration name for adding extra options to the vite.static StringSERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERNConfiguration name for the pattern used to inspect the webpack output to detecting when compilation failed.static StringSERVLET_PARAMETER_DEVMODE_WEBPACK_OPTIONSConfiguration name for adding extra options to the webpack-dev-server.static StringSERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERNConfiguration name for the pattern used to inspect the webpack output to assure it is up and running.static StringSERVLET_PARAMETER_DEVMODE_WEBPACK_TIMEOUTConfiguration name for the time waiting for webpack output success or error pattern defined inConstants.SERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERNandConstants.SERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERNparameters.static StringSERVLET_PARAMETER_DISABLE_XSRF_PROTECTIONstatic StringSERVLET_PARAMETER_ENABLE_DEV_SERVERstatic StringSERVLET_PARAMETER_ENABLE_PNPMConfiguration parameter name for enabling pnpm.static StringSERVLET_PARAMETER_GLOBAL_PNPMConfiguration parameter name for using globally installed pnpm or default one.static StringSERVLET_PARAMETER_HEARTBEAT_INTERVALstatic StringSERVLET_PARAMETER_INITIAL_UIDLstatic StringSERVLET_PARAMETER_JSBUNDLEstatic StringSERVLET_PARAMETER_MAX_MESSAGE_SUSPEND_TIMEOUTstatic StringSERVLET_PARAMETER_POLYFILLSstatic StringSERVLET_PARAMETER_PRODUCTION_MODEstatic StringSERVLET_PARAMETER_PUSH_MODEstatic StringSERVLET_PARAMETER_PUSH_SERVLET_MAPPINGstatic StringSERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLINGstatic StringSERVLET_PARAMETER_REQUEST_TIMINGstatic StringSERVLET_PARAMETER_REUSE_DEV_SERVERstatic StringSERVLET_PARAMETER_SEND_URLS_AS_PARAMETERSstatic StringSERVLET_PARAMETER_STATISTICS_JSONConfiguration name for the WebPack profile statistics json file to use to determine template contents.static StringSERVLET_PARAMETER_SYNC_ID_CHECKstatic StringSERVLET_PARAMETER_USE_V14_BOOTSTRAPEnable it if your project is using client-side bootstrapping (CCDM).static StringSERVLET_PARAMETER_WEB_COMPONENT_DISCONNECTstatic StringUI_PARAMETERThe 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 defaultUIclass.- 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_SERVLET_MAPPING
public static final String SERVLET_PARAMETER_PUSH_SERVLET_MAPPING
- 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_PATTERNandConstants.SERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERNparameters.- 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_TOOLSis 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 associatedUIinstances 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 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:
- 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
-
CI_BUILD
public static final String CI_BUILD
Configuration name for enabling ci build for npm/pnpm.- See Also:
- Constant Field Values
-
-