Package com.vaadin.flow.server
Class Constants
java.lang.Object
com.vaadin.flow.server.Constants
- All Implemented Interfaces:
Serializable
Constants used by the server side framework.
Not available on the client side, for that use
ApplicationConstants.
- Since:
- 1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringInternal parameter which prevent validation for annotations which are allowed on an AppShell classstatic final StringThe name of the application theme root folder.static final StringThe directory name inside dev bundle for the frontend assets.static final StringAttribute used by HasSize to mark elements that have been set to full height.static final StringAttribute used by HasSize to mark elements that have been set to full width.static final StringThe folder where the bundle zip files are stored.static final StringLocation for the frontend resources in jar files for compatibility mode (also obsolete but supported for npm mode).static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final booleanThe default value for whether usage statistics is enabled.static final StringDefault location to look for the external stats.json.static final booleanThe default value forInitParameters.NODE_AUTO_UPDATE.static final booleanThe default value forInitParameters.REQUIRE_HOME_NODE_EXECUTABLE.static final StringThe file name of the compressed development bundle.static final StringLocation of the compressed development bundle file.static final StringThe path part where dev-bundle is located inside the jar.static final StringThe folder in the project where Flow generates Express Build mode application dev bundle.static final StringThe name of the default dev bundle for the Express Build mode.static final StringKey for storing the value of `alwaysExecutePrepareFrontend` flag of Gradle builds in a build info (token) file.static final booleanConstant for whether bun is default or not.static final booleanConstant for whether pnpm is default or not.static final StringProperty boolean for marking stats.json to be fetched from external location.static final Stringstatic final StringProperty String for external stats.json location url.static final Stringstatic final Stringstatic final booleanConstant for setting the pinned supported version of pnpm to be used by default (seeFrontendTools.DEFAULT_PNPM_VERSION).static final Stringstatic final StringDefault path for local frontend resources packaged for jar add-ons.static final StringThe path used in the vaadin servlet for handling static resources.static final StringName of the temporary file storing internal flag showing that Flow needs to re-build the production bundle or not.static final Stringstatic final StringName of thenpmmain file.static final StringName of thebunversion locking file.static final StringName of thebunversion locking file, starting from bun 1.2.static final StringName of thenpmversion locking file.static final StringName of thepnpmversion locking file.static final Stringstatic final Stringstatic final StringThe file name of the compressed production bundle.static final StringLocation of the compressed production bundle file.static final StringThe path part where production bundle is located inside the jar.static final StringThe name of the default production bundle.static final Stringstatic final StringThe path used in the vaadin servlet for handling push.static final Stringstatic final StringLocation for the frontend resources in jar files.static final StringLocation for the resources in jar files.static final StringLocation for the theme resources in jar files.static final intDefault live reload port as defined in Spring Boot Dev Tools.static final StringUsageEntry name for UsageStatistics BootstrapHandler.static final StringUsageEntry name for automatic layout.static final StringUsageEntry name for client route using automatic layout.static final StringUsageEntry name for exported web components.static final StringUsageEntry name for Flow routes definitions.static final StringUsageEntry name for server route using automatic layout.static final StringUsageEntry name for UsageStatistics Routing Client.static final StringUsageEntry name for UsageStatistics Hybrid.static final StringUsageEntry name for UsageStatistics Routing Server.static final StringUsageEntry for rendering an exported web component.static final StringUsageEntry for rendering a Flow route.static final StringDefault path for the frontend statistics json file.static final StringTarget folder constant.static final StringDefault resource directory to place template sources in.static final StringA request parameter that can be given in browser to force the Vaadin application to close an existing UI and session.static final StringA request parameter that can be given in browser to force the Vaadin application to create a new UI and session instance, thus overriding@PreserveOnRefreshannotation.static final StringThe static build resources folder.static final StringThe prefix used for all internal static files, relative to context root.static final StringThe static configuration resources folder.static final StringThe name of platform core components and tools versions file.static final StringThe path used in the vaadin servlet for handling static resources.static final StringThe prefix used for System property parameters.static final StringThe generated PWA icons folder.static final StringThe path to meta-inf/VAADIN/ where static resources are put on the servlet.static final StringThe name of platform commercial components and tools versions file.static final StringThe static resources root folder.static final StringThe path to webapp/ public resources root. -
Method Summary
-
Field Details
-
REQUIRED_ATMOSPHERE_RUNTIME_VERSION
- See Also:
-
VAADIN_PREFIX
The prefix used for System property parameters.- See Also:
-
NPM_TOKEN
- See Also:
-
FRONTEND_TOKEN
- See Also:
-
CONNECT_JAVA_SOURCE_FOLDER_TOKEN
- See Also:
-
JAVA_RESOURCE_FOLDER_TOKEN
- See Also:
-
CONNECT_APPLICATION_PROPERTIES_TOKEN
- See Also:
-
CONNECT_OPEN_API_FILE_TOKEN
- See Also:
-
PROJECT_FRONTEND_GENERATED_DIR_TOKEN
- See Also:
-
EXTERNAL_STATS_FILE_TOKEN
- See Also:
-
EXTERNAL_STATS_URL_TOKEN
- See Also:
-
DAU_TOKEN
- See Also:
-
PREMIUM_FEATURES
- See Also:
-
POLYFILLS_DEFAULT_VALUE
- See Also:
-
STATISTICS_JSON_DEFAULT
Default path for the frontend statistics json file. It can be modified by setting the system property "statistics.file.path".- See Also:
-
TEMPLATE_DIRECTORY
Default resource directory to place template sources in. This is used used for Vite production mode instead of a stats.json file.- See Also:
-
PACKAGE_JSON
Name of thenpmmain file.- See Also:
-
PACKAGE_LOCK_JSON
Name of thenpmversion locking file.- See Also:
-
PACKAGE_LOCK_YAML
Name of thepnpmversion locking file.- See Also:
-
PACKAGE_LOCK_BUN
Name of thebunversion locking file.- See Also:
-
PACKAGE_LOCK_BUN_1_2
Name of thebunversion locking file, starting from bun 1.2.- See Also:
-
TARGET
Target folder constant.- See Also:
-
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
Location for the frontend resources in jar files.- See Also:
-
APPLICATION_THEME_ROOT
The name of the application theme root folder.- See Also:
-
RESOURCES_JAR_DEFAULT
Location for the resources in jar files.- See Also:
-
RESOURCES_THEME_JAR_DEFAULT
Location for the theme resources in jar files.- See Also:
-
ENABLE_PNPM_DEFAULT
public static final boolean ENABLE_PNPM_DEFAULTConstant for whether pnpm is default or not.- See Also:
-
ENABLE_BUN_DEFAULT
public static final boolean ENABLE_BUN_DEFAULTConstant for whether bun is default or not.- See Also:
-
GLOBAL_PNPM_DEFAULT
public static final boolean GLOBAL_PNPM_DEFAULTConstant for setting the pinned supported version of pnpm to be used by default (seeFrontendTools.DEFAULT_PNPM_VERSION).- See Also:
-
DEFAULT_NODE_AUTO_UPDATE
public static final boolean DEFAULT_NODE_AUTO_UPDATEThe default value forInitParameters.NODE_AUTO_UPDATE.- See Also:
-
DEFAULT_REQUIRE_HOME_NODE_EXECUTABLE
public static final boolean DEFAULT_REQUIRE_HOME_NODE_EXECUTABLEThe default value forInitParameters.REQUIRE_HOME_NODE_EXECUTABLE.- See Also:
-
DEFAULT_DEVMODE_STATS
public static final boolean DEFAULT_DEVMODE_STATSThe default value for whether usage statistics is enabled.- See Also:
-
ALLOW_APPSHELL_ANNOTATIONS
Internal parameter which prevent validation for annotations which are allowed on an AppShell class- See Also:
-
META_INF
The path used in the vaadin servlet for handling static resources.- See Also:
-
VAADIN_MAPPING
The path used in the vaadin servlet for handling static resources.- See Also:
-
PUSH_MAPPING
The path used in the vaadin servlet for handling push.- See Also:
-
VAADIN_BUILD
The static build resources folder.- See Also:
-
VAADIN_CONFIGURATION
The static configuration resources folder.- See Also:
-
VAADIN_WEBAPP
The static resources root folder.- See Also:
-
VAADIN_PWA_ICONS
The generated PWA icons folder.- See Also:
-
VAADIN_SERVLET_RESOURCES
The path to meta-inf/VAADIN/ where static resources are put on the servlet.- See Also:
-
VAADIN_WEBAPP_RESOURCES
The path to webapp/ public resources root.- See Also:
-
VAADIN_BUILD_FILES_PATH
The prefix used for all internal static files, relative to context root.- See Also:
-
LOCAL_FRONTEND_RESOURCES_PATH
Default path for local frontend resources packaged for jar add-ons.- See Also:
-
EXTERNAL_STATS_FILE
Property boolean for marking stats.json to be fetched from external location.- See Also:
-
EXTERNAL_STATS_URL
Property String for external stats.json location url.- See Also:
-
DEFAULT_EXTERNAL_STATS_URL
Default location to look for the external stats.json.- See Also:
-
URL_PARAMETER_RESTART_APPLICATION
A request parameter that can be given in browser to force the Vaadin application to create a new UI and session instance, thus overriding@PreserveOnRefreshannotation.- See Also:
-
URL_PARAMETER_CLOSE_APPLICATION
A request parameter that can be given in browser to force the Vaadin application to close an existing UI and session. UnlikeURL_PARAMETER_RESTART_APPLICATION, this will not create a new session.- See Also:
-
STATISTIC_FLOW_BOOTSTRAPHANDLER
UsageEntry name for UsageStatistics BootstrapHandler.- See Also:
-
STATISTIC_ROUTING_SERVER
UsageEntry name for UsageStatistics Routing Server.- See Also:
-
STATISTIC_ROUTING_CLIENT
UsageEntry name for UsageStatistics Routing Client.- See Also:
-
STATISTIC_ROUTING_HYBRID
UsageEntry name for UsageStatistics Hybrid.- See Also:
-
STATISTIC_HAS_FLOW_ROUTE
UsageEntry name for Flow routes definitions. Marked used, if RouteRegistry is not empty.- See Also:
-
STATISTIC_HAS_AUTO_LAYOUT
UsageEntry name for automatic layout. Marked used, if Layout annotation is used or RouteRegistry#setLayout is used directly.- See Also:
-
STATISTIC_HAS_CLIENT_ROUTE_WITH_AUTO_LAYOUT
UsageEntry name for client route using automatic layout. Marked used, if AvailableViewInfo#flowLayout is true for any client route.- See Also:
-
STATISTIC_HAS_SERVER_ROUTE_WITH_AUTO_LAYOUT
UsageEntry name for server route using automatic layout. Marked used, if any server route's layout matches Layout annotated layout.- See Also:
-
STATISTIC_HAS_EXPORTED_WC
UsageEntry name for exported web components. Marked used, if either WebComponentExporter or WebComponentExporterFactory is found in a project- See Also:
-
STATISTICS_FLOW_ROUTER
UsageEntry for rendering a Flow route. Marked as used, if a user navigates to a Flow route and navigation doesn't end up with an error.- See Also:
-
STATISTICS_EXPORTED_WC
UsageEntry for rendering an exported web component. Marked as used, if an exported web component is instantiated on the server.- See Also:
-
VAADIN_CORE_VERSIONS_JSON
The name of platform core components and tools versions file.- See Also:
-
VAADIN_VERSIONS_JSON
The name of platform commercial components and tools versions file.- See Also:
-
SPRING_BOOT_DEFAULT_LIVE_RELOAD_PORT
public static final int SPRING_BOOT_DEFAULT_LIVE_RELOAD_PORTDefault live reload port as defined in Spring Boot Dev Tools.- See Also:
-
DEV_BUNDLE_NAME
The name of the default dev bundle for the Express Build mode.- See Also:
-
PROD_BUNDLE_NAME
The name of the default production bundle.- See Also:
-
DEV_BUNDLE_LOCATION
The folder in the project where Flow generates Express Build mode application dev bundle.- See Also:
-
BUNDLE_LOCATION
The folder where the bundle zip files are stored.- See Also:
-
DEV_BUNDLE_COMPRESSED_FILE
The file name of the compressed development bundle.- See Also:
-
DEV_BUNDLE_COMPRESSED_FILE_LOCATION
Location of the compressed development bundle file.- See Also:
-
DEV_BUNDLE_JAR_PATH
The path part where dev-bundle is located inside the jar.- See Also:
-
PROD_BUNDLE_JAR_PATH
The path part where production bundle is located inside the jar.- See Also:
-
PROD_BUNDLE_COMPRESSED_FILE
The file name of the compressed production bundle.- See Also:
-
PROD_BUNDLE_COMPRESSED_FILE_LOCATION
Location of the compressed production bundle file.- See Also:
-
ASSETS
The directory name inside dev bundle for the frontend assets.- See Also:
-
NEEDS_BUNDLE_BUILD_FILE
Name of the temporary file storing internal flag showing that Flow needs to re-build the production bundle or not.- See Also:
-
DISABLE_PREPARE_FRONTEND_CACHE
Key for storing the value of `alwaysExecutePrepareFrontend` flag of Gradle builds in a build info (token) file.- See Also:
-
ATTRIBUTE_WIDTH_FULL
Attribute used by HasSize to mark elements that have been set to full width.- See Also:
-
ATTRIBUTE_HEIGHT_FULL
Attribute used by HasSize to mark elements that have been set to full height.- See Also:
-