public class InitParameters extends Object implements Serializable
Note: do not add other constants than String constants representing init parameters here.
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_PARAMETER_DEVMODE_ENABLE_COMPONENT_TRACKER
Configuration parameter name for enabling component tracking in
development mode.
|
static String |
CI_BUILD
Configuration name for enabling ci build for npm/pnpm.
|
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 |
DISABLE_WEBJARS
Configuration name for the parameter that determines if Flow should use
webJars or not.
|
static String |
ENFORCE_FIELD_VALIDATION
A property that enforces full experience validation for Flow components.
|
static String |
EXTERNAL_STATS_FILE
Property boolean for marking stats.json to be fetched from external
location.
|
static String |
EXTERNAL_STATS_URL
Property String for external stats.json location url.
|
static String |
FRONTEND_URL_ES5
Configuration name for the frontend URL prefix for ES5.
|
static String |
FRONTEND_URL_ES6
Configuration name for the frontend URL prefix for ES6.
|
static String |
I18N_PROVIDER
I18N provider property.
|
static String |
LOAD_ES5_ADAPTERS
Configuration name for loading the ES5 adapters.
|
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_BOWER_MODE
Deprecated.
Bower WebJars are no longer supported.
|
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_COMPATIBILITY_MODE
Deprecated.
Bower WebJars are no longer supported.
|
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_TRANSPILE
Boolean parameter for enabling/disabling transpilation for IE11 with the
BabelMultiTargetPlugin in dev mode.
|
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 in
Constants.SERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERN and
Constants.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_OLD_LICENSE_CHECKER
Configuration parameter name for enabling old JavaScript license checker
and disable server-side and offline license checker features.
|
static String |
SERVLET_PARAMETER_ENABLE_PNPM
Configuration parameter name for enabling pnpm.
|
static String |
SERVLET_PARAMETER_HEARTBEAT_INTERVAL |
static String |
SERVLET_PARAMETER_JSBUNDLE |
static String |
SERVLET_PARAMETER_MAX_MESSAGE_SUSPEND_TIMEOUT |
static String |
SERVLET_PARAMETER_MAX_REQUEST_BODY_SIZE
Configuration parameter name for the maximum size, in characters, that
Flow reads from a client-to-server UIDL/RPC or push request body before
rejecting the request with HTTP 413 (Request Entity Too Large).
|
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_WEB_COMPONENT_DISCONNECT |
static String |
UI_PARAMETER
The name of the parameter that is by default used in e.g.
|
static String |
URL_SAFE_SCHEMES
Configuration name for the comma-separated list of URL schemes that are
considered safe in URLs set on components such as
Anchor,
IFrame and in
Page.open(String, String). |
static String |
USE_ORIGINAL_FRONTEND_RESOURCES
Configuration name for the parameter that determines if Flow should use
bundled fragments or not.
|
| Constructor and Description |
|---|
InitParameters() |
public static final String UI_PARAMETER
UI class.public static final String SERVLET_PARAMETER_PRODUCTION_MODE
@Deprecated public static final String SERVLET_PARAMETER_COMPATIBILITY_MODE
@Deprecated public static final String SERVLET_PARAMETER_BOWER_MODE
public static final String SERVLET_PARAMETER_ENABLE_DEV_SERVER
public static final String SERVLET_PARAMETER_REUSE_DEV_SERVER
public static final String SERVLET_PARAMETER_REQUEST_TIMING
public static final String SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION
public static final String SERVLET_PARAMETER_HEARTBEAT_INTERVAL
public static final String SERVLET_PARAMETER_WEB_COMPONENT_DISCONNECT
public static final String SERVLET_PARAMETER_CLOSE_IDLE_SESSIONS
public static final String SERVLET_PARAMETER_PUSH_MODE
public static final String SERVLET_PARAMETER_PUSH_URL
public static final String SERVLET_PARAMETER_SYNC_ID_CHECK
public static final String SERVLET_PARAMETER_SEND_URLS_AS_PARAMETERS
public static final String SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING
public static final String SERVLET_PARAMETER_MAX_MESSAGE_SUSPEND_TIMEOUT
public static final String SERVLET_PARAMETER_MAX_REQUEST_BODY_SIZE
-1 to disable the limit.
This limit does not apply to file uploads, which are streamed in chunks and have their own separate size limits (request size, file size and file count).
The body is read incrementally and the limit is enforced on the running
total, so the request is rejected mid-stream once the limit is exceeded;
even chunked (Transfer-Encoding: chunked) requests without a
Content-Length header cannot bypass it. For this to hold, Flow
must be the first component to read the body: if a filter or request
wrapper in front of Flow buffers the whole body first, that memory cost
is incurred before this check runs. As defense-in-depth, also configure a
request body size limit and a request read timeout at the servlet
container or reverse proxy (for example Tomcat connectionTimeout
and maxSwallowSize, or nginx client_max_body_size and
client_body_timeout).
Be careful not to set the limit too low: every Flow interaction adds a small protocol overhead (roughly 100 bytes per request on top of the actual payload), and request bodies also grow with the size of component state changes and RPC arguments sent from the browser. A limit that is too low will reject legitimate interactions and make the application unusable. Choose a value that comfortably accommodates the largest expected UIDL/RPC payload produced by the application.
public static final String SERVLET_PARAMETER_JSBUNDLE
public static final String SERVLET_PARAMETER_POLYFILLS
public static final String NODE_VERSION
public static final String NODE_DOWNLOAD_ROOT
public static final String SERVLET_PARAMETER_BROTLI
public static final String LOAD_ES5_ADAPTERS
public static final String FRONTEND_URL_ES6
public static final String FRONTEND_URL_ES5
public static final String SERVLET_PARAMETER_STATISTICS_JSON
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
public static final String SERVLET_PARAMETER_DEVMODE_WEBPACK_TIMEOUT
Constants.SERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERN and
Constants.SERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERN
parameters.public static final String SERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERN
DevModeHandler as the : Compiled expression.public static final String SERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERN
DevModeHandler as the : Failed expression.public static final String SERVLET_PARAMETER_DEVMODE_WEBPACK_OPTIONS
public static final String SERVLET_PARAMETER_DEVMODE_OPTIMIZE_BUNDLE
public static final String SERVLET_PARAMETER_ENABLE_PNPM
public static final String SERVLET_PARAMETER_DEVMODE_ENABLE_LIVE_RELOAD
public static final String I18N_PROVIDER
public static final String DISABLE_AUTOMATIC_SERVLET_REGISTRATION
public static final String REQUIRE_HOME_NODE_EXECUTABLE
public static final String COMPILED_WEB_COMPONENTS_PATH
webComponentOutputDirectoryName 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.public static final String DISABLE_WEBJARS
public static final String USE_ORIGINAL_FRONTEND_RESOURCES
public static final String SERVLET_PARAMETER_DEVMODE_TRANSPILE
public static final String EXTERNAL_STATS_FILE
public static final String EXTERNAL_STATS_URL
public static final String SERVLET_PARAMETER_ENABLE_OLD_LICENSE_CHECKER
Compatibility/Bower mode always uses old license checking.
public static final String CI_BUILD
public static final String ENFORCE_FIELD_VALIDATION
The full experience validation integrates web component's own validation, server-side component's constraints and Binder validation into a seamless chain. By default, it's disabled, which means that components aren't validated on blur, for example.
For more detailed information, please refer to: https://github.com/vaadin/platform/issues/3066#issuecomment-1598771284
public static final String APPLICATION_PARAMETER_DEVMODE_ENABLE_COMPONENT_TRACKER
public static final String URL_SAFE_SCHEMES
Anchor,
IFrame and in
Page.open(String, String).
When not set, a built-in default set of safe schemes is used (for example
http, https, mailto, tel and
ftp), which excludes script-capable schemes such as
javascript and data. Any entry equal to * marks
every scheme as safe, disabling scheme validation. URLs whose scheme is
not safe can still be set through the dedicated setUnsafe*
methods.
Copyright © 2000–2026 Vaadin Ltd. All rights reserved.