com.vaadin.flow.server.
Class Constants
- java.lang.Object
-
- com.vaadin.flow.server.Constants
-
All Implemented Interfaces:
public final class Constants extends Object implements Serializable
Constants used by the server side framework.
Since:
1.0
See Also:
-
-
Field Summary
Fields Modifier and Type Field and Description static String
COMPATIBILITY_RESOURCES_FRONTEND_DEFAULT
Location for the frontend resources in jar files for compatibility mode (also obsolete but supported for NPM mode).
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
FRONTEND_TOKEN
static String
FRONTEND_URL_DEV_DEFAULT
Default frontend URL prefix for development.
static String
FRONTEND_URL_ES5
Configuration name for the frontend URL prefix for ES5.
static String
FRONTEND_URL_ES5_DEFAULT_VALUE
Default frontend URL prefix for ES.
static String
FRONTEND_URL_ES6
Configuration name for the frontend URL prefix for ES6.
static String
FRONTEND_URL_ES6_DEFAULT_VALUE
Default frontend URL prefix for ES6.
static String
GENERATED_TOKEN
static String
I18N_PROVIDER
I18N provider property.
static String
LOAD_ES5_ADAPTERS
Configuration name for loading the ES5 adapters.
static String
LOCAL_FRONTEND_RESOURCES_PATH
Default path for local frontend resources packaged for jar add-ons.
static String
META_INF
The path used in the vaadin servlet for handling static resources.
static String
NPM_TOKEN
static String
PACKAGE_JSON
Name of the
npm
main file.static String
POLYFILLS_DEFAULT_VALUE
static String
REQUIRED_ATMOSPHERE_RUNTIME_VERSION
static String
RESOURCES_FRONTEND_DEFAULT
Location for the frontend resources in jar files.
static String
SERVLET_PARAMETER_BOWER_MODE
Deprecated.
the parameter is renamed toSERVLET_PARAMETER_COMPATIBILITY_MODE
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
enable it if your project is a Polymer 2.0 one, should be removed in V15
static String
SERVLET_PARAMETER_DEVMODE_OPTIMIZE_BUNDLE
Boolean parameter for enabling/disabling bytecode scanning in dev mode.
static String
SERVLET_PARAMETER_DEVMODE_POLYMER_VERSION
Configuration parameter name for polymer version.
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
SERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERN
andSERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERN
parameters.static String
SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION
static String
SERVLET_PARAMETER_ENABLE_DEV_SERVER
static String
SERVLET_PARAMETER_HEARTBEAT_INTERVAL
static String
SERVLET_PARAMETER_JSBUNDLE
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 int
SHOULD_WORK_NODE_MAJOR_VERSION
static int
SHOULD_WORK_NODE_MINOR_VERSION
static int
SHOULD_WORK_NPM_MAJOR_VERSION
static int
SHOULD_WORK_NPM_MINOR_VERSION
static String
STATISTICS_JSON_DEFAULT
Default path for the WebPack profile statistics json file.
static int
SUPPORTED_NODE_MAJOR_VERSION
static int
SUPPORTED_NODE_MINOR_VERSION
static int
SUPPORTED_NPM_MAJOR_VERSION
static int
SUPPORTED_NPM_MINOR_VERSION
static String
USE_ORIGINAL_FRONTEND_RESOURCES
Configuration name for the parameter that determines if Flow should use bundled fragments or not.
static String
VAADIN_BUILD
The static build resources folder.
static String
VAADIN_BUILD_FILES_PATH
The prefix used for all internal static files, relative to context root.
static String
VAADIN_CONFIGURATION
The static configuration resources folder.
static String
VAADIN_MAPPING
The path used in the vaadin servlet for handling static resources.
static String
VAADIN_PREFIX
The prefix used for System property parameters.
static String
VAADIN_SERVLET_RESOURCES
The path to meta-inf/VAADIN/ where static resources are put on the servlet.
-
-
-
Field Detail
-
REQUIRED_ATMOSPHERE_RUNTIME_VERSION
public static final String REQUIRED_ATMOSPHERE_RUNTIME_VERSION
See Also:
-
VAADIN_PREFIX
public static final String VAADIN_PREFIX
The prefix used for System property parameters.
See Also:
-
SERVLET_PARAMETER_PRODUCTION_MODE
public static final String SERVLET_PARAMETER_PRODUCTION_MODE
See Also:
-
NPM_TOKEN
public static final String NPM_TOKEN
See Also:
-
FRONTEND_TOKEN
public static final String FRONTEND_TOKEN
See Also:
-
GENERATED_TOKEN
public static final String GENERATED_TOKEN
See Also:
-
SERVLET_PARAMETER_BOWER_MODE
@Deprecated public static final String SERVLET_PARAMETER_BOWER_MODE
Deprecated. the parameter is renamed to
SERVLET_PARAMETER_COMPATIBILITY_MODE
enable it if your project is a Polymer 2.0 one, should be removed in V15
See Also:
-
SERVLET_PARAMETER_COMPATIBILITY_MODE
public static final String SERVLET_PARAMETER_COMPATIBILITY_MODE
enable it if your project is a Polymer 2.0 one, should be removed in V15
See Also:
-
SERVLET_PARAMETER_ENABLE_DEV_SERVER
public static final String SERVLET_PARAMETER_ENABLE_DEV_SERVER
See Also:
-
SERVLET_PARAMETER_REUSE_DEV_SERVER
public static final String SERVLET_PARAMETER_REUSE_DEV_SERVER
See Also:
-
SERVLET_PARAMETER_REQUEST_TIMING
public static final String SERVLET_PARAMETER_REQUEST_TIMING
See Also:
-
SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION
public static final String SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION
See Also:
-
SERVLET_PARAMETER_HEARTBEAT_INTERVAL
public static final String SERVLET_PARAMETER_HEARTBEAT_INTERVAL
See Also:
-
SERVLET_PARAMETER_WEB_COMPONENT_DISCONNECT
public static final String SERVLET_PARAMETER_WEB_COMPONENT_DISCONNECT
See Also:
-
SERVLET_PARAMETER_CLOSE_IDLE_SESSIONS
public static final String SERVLET_PARAMETER_CLOSE_IDLE_SESSIONS
See Also:
-
SERVLET_PARAMETER_PUSH_MODE
public static final String SERVLET_PARAMETER_PUSH_MODE
See Also:
-
SERVLET_PARAMETER_PUSH_URL
public static final String SERVLET_PARAMETER_PUSH_URL
See Also:
-
SERVLET_PARAMETER_SYNC_ID_CHECK
public static final String SERVLET_PARAMETER_SYNC_ID_CHECK
See Also:
-
SERVLET_PARAMETER_SEND_URLS_AS_PARAMETERS
public static final String SERVLET_PARAMETER_SEND_URLS_AS_PARAMETERS
See Also:
-
SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING
public static final String SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING
See Also:
-
SERVLET_PARAMETER_JSBUNDLE
public static final String SERVLET_PARAMETER_JSBUNDLE
See Also:
-
SERVLET_PARAMETER_POLYFILLS
public static final String SERVLET_PARAMETER_POLYFILLS
See Also:
-
POLYFILLS_DEFAULT_VALUE
public static final String POLYFILLS_DEFAULT_VALUE
See Also:
-
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:
-
LOAD_ES5_ADAPTERS
public static final String LOAD_ES5_ADAPTERS
Configuration name for loading the ES5 adapters.
See Also:
-
FRONTEND_URL_ES6
public static final String FRONTEND_URL_ES6
Configuration name for the frontend URL prefix for ES6.
See Also:
-
FRONTEND_URL_ES5
public static final String FRONTEND_URL_ES5
Configuration name for the frontend URL prefix for ES5.
See Also:
-
FRONTEND_URL_ES6_DEFAULT_VALUE
public static final String FRONTEND_URL_ES6_DEFAULT_VALUE
Default frontend URL prefix for ES6.
See Also:
-
FRONTEND_URL_ES5_DEFAULT_VALUE
public static final String FRONTEND_URL_ES5_DEFAULT_VALUE
Default frontend URL prefix for ES.
See Also:
-
FRONTEND_URL_DEV_DEFAULT
public static final String FRONTEND_URL_DEV_DEFAULT
Default frontend URL prefix for development.
See Also:
-
DISABLE_WEBJARS
public static final String DISABLE_WEBJARS
Configuration name for the parameter that determines if Flow should use webJars or not.
See Also:
-
USE_ORIGINAL_FRONTEND_RESOURCES
public static final String USE_ORIGINAL_FRONTEND_RESOURCES
Configuration name for the parameter that determines if Flow should use bundled fragments or not.
See Also:
-
I18N_PROVIDER
public static final String I18N_PROVIDER
I18N provider property.
See Also:
-
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:
-
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 as
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.See Also:
-
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
STATISTICS_JSON_DEFAULT
See Also:
-
STATISTICS_JSON_DEFAULT
public static final String STATISTICS_JSON_DEFAULT
Default path for the WebPack profile statistics json file. It can be modified by setting the system property "statistics.file.path".
See Also:
-
PACKAGE_JSON
public static final String PACKAGE_JSON
Name of the
npm
main file.See Also:
-
COMPATIBILITY_RESOURCES_FRONTEND_DEFAULT
public static final String COMPATIBILITY_RESOURCES_FRONTEND_DEFAULT
Location for the frontend resources in jar files for compatibility mode (also obsolete but supported for NPM mode).
See Also:
-
RESOURCES_FRONTEND_DEFAULT
public static final String RESOURCES_FRONTEND_DEFAULT
Location for the frontend resources in jar files.
See Also:
-
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 in
SERVLET_PARAMETER_DEVMODE_WEBPACK_SUCCESS_PATTERN
andSERVLET_PARAMETER_DEVMODE_WEBPACK_ERROR_PATTERN
parameters.See Also:
-
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 defined in
DevModeHandler
as the: Compiled
expression.See Also:
-
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 defined in
DevModeHandler
as the: Failed
expression.See Also:
-
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:
-
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:
-
SERVLET_PARAMETER_DEVMODE_POLYMER_VERSION
public static final String SERVLET_PARAMETER_DEVMODE_POLYMER_VERSION
Configuration parameter name for polymer version.
See Also:
-
META_INF
public static final String META_INF
The path used in the vaadin servlet for handling static resources.
See Also:
-
VAADIN_MAPPING
public static final String VAADIN_MAPPING
The path used in the vaadin servlet for handling static resources.
See Also:
-
VAADIN_SERVLET_RESOURCES
public static final String VAADIN_SERVLET_RESOURCES
The path to meta-inf/VAADIN/ where static resources are put on the servlet.
See Also:
-
VAADIN_BUILD
public static final String VAADIN_BUILD
The static build resources folder.
See Also:
-
VAADIN_CONFIGURATION
public static final String VAADIN_CONFIGURATION
The static configuration resources folder.
See Also:
-
VAADIN_BUILD_FILES_PATH
public static final String VAADIN_BUILD_FILES_PATH
The prefix used for all internal static files, relative to context root.
See Also:
-
LOCAL_FRONTEND_RESOURCES_PATH
public static final String LOCAL_FRONTEND_RESOURCES_PATH
Default path for local frontend resources packaged for jar add-ons.
See Also:
-
SUPPORTED_NODE_MAJOR_VERSION
public static final int SUPPORTED_NODE_MAJOR_VERSION
See Also:
-
SUPPORTED_NODE_MINOR_VERSION
public static final int SUPPORTED_NODE_MINOR_VERSION
See Also:
-
SUPPORTED_NPM_MAJOR_VERSION
public static final int SUPPORTED_NPM_MAJOR_VERSION
See Also:
-
SUPPORTED_NPM_MINOR_VERSION
public static final int SUPPORTED_NPM_MINOR_VERSION
See Also:
-
SHOULD_WORK_NODE_MAJOR_VERSION
public static final int SHOULD_WORK_NODE_MAJOR_VERSION
See Also:
-
SHOULD_WORK_NODE_MINOR_VERSION
public static final int SHOULD_WORK_NODE_MINOR_VERSION
See Also:
-
SHOULD_WORK_NPM_MAJOR_VERSION
public static final int SHOULD_WORK_NPM_MAJOR_VERSION
See Also:
-
SHOULD_WORK_NPM_MINOR_VERSION
public static final int SHOULD_WORK_NPM_MINOR_VERSION
See Also:
-
-