/** * Checks whether precompressed Brotli files should be used if available. * * @return <code>true</code> to serve precompressed Brotli files, * <code>false</code> to not serve Brotli files. */ default boolean isBrotli() { return getBooleanProperty(Constants.SERVLET_PARAMETER_BROTLI, false); } }
/** * Determines if Flow should automatically register servlets. For more * information on the servlets registered, refer to * {@link com.vaadin.flow.server.startup.ServletDeployer} javadoc. * * User can explicitly disable automatic servlet registration by setting the * {@link Constants#DISABLE_AUTOMATIC_SERVLET_REGISTRATION} property to * {@code true}. * * @return {@code true} if Flow should not automatically register servlets * @see com.vaadin.flow.server.startup.ServletDeployer */ default boolean disableAutomaticServletRegistration() { return getBooleanProperty( Constants.DISABLE_AUTOMATIC_SERVLET_REGISTRATION, false); }
/** * Determines if webJars mechanism is enabled. It is disabled if the user * have explicitly set the {@link Constants#DISABLE_WEBJARS} property to * {@code true}, or the user have not set the property at all and the * {@link #useCompiledFrontendResources()} returns false. * * @return {@code true} if webJars are enabled, {@code false} otherwise */ default boolean areWebJarsEnabled() { return !getBooleanProperty(Constants.DISABLE_WEBJARS, useCompiledFrontendResources()); }
/** * Determines if Flow should use compiled or original frontend resources. * * User can explicitly disable bundled resources usage by setting the * {@link Constants#USE_ORIGINAL_FRONTEND_RESOURCES} property to * {@code true}. * * @return {@code true} if Flow should use compiled frontend resources. */ default boolean useCompiledFrontendResources() { return isProductionMode() && !getBooleanProperty( Constants.USE_ORIGINAL_FRONTEND_RESOURCES, false); }
.getBooleanProperty(Constants.LOAD_ES5_ADAPTERS, true); if (loadEs5Adapter && !session.getBrowser().isEs6Supported()) {