Interface Constants

  • All Known Implementing Classes:
    LegacyVaadinServlet, VaadinServlet

    public interface Constants
    Internal constants used by both the client and the server side framework.
    Since:
    6.2
    • Field Detail

      • WARNING_RESOURCE_CACHING_TIME_NOT_NUMERIC

        static final String WARNING_RESOURCE_CACHING_TIME_NOT_NUMERIC
        See Also:
        Constant Field Values
      • REQUIRED_ATMOSPHERE_RUNTIME_JAKARTA_VERSION

        static final String REQUIRED_ATMOSPHERE_RUNTIME_JAKARTA_VERSION
        See Also:
        Constant Field Values
      • ATMOSPHERE_MISSING_ERROR

        static final String ATMOSPHERE_MISSING_ERROR
      • PUSH_NOT_SUPPORTED_ERROR

        static final String PUSH_NOT_SUPPORTED_ERROR
      • SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION

        static final String SERVLET_PARAMETER_DISABLE_XSRF_PROTECTION
        See Also:
        Constant Field Values
      • SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING

        static final String SERVLET_PARAMETER_PUSH_SUSPEND_TIMEOUT_LONGPOLLING
        See Also:
        Constant Field Values
      • SERVLET_PARAMETER_MAX_REQUEST_BODY_SIZE

        static final String SERVLET_PARAMETER_MAX_REQUEST_BODY_SIZE
        Configuration parameter name for the maximum size, in characters, that the framework reads from a client-to-server UIDL/RPC or push request body before rejecting the request with HTTP 413 (Request Entity Too Large). The default is 10 MB; set the value to -1 to disable the limit.

        This limit does not apply to file uploads, which have their own separate size limits (request size, file size).

        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, the framework must be the first component to read the body: if a filter or request wrapper in front of the framework 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 framework interaction adds a small protocol overhead, 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.

        See Also:
        Constant Field Values
      • SERVLET_PARAMETER_LEGACY_DESIGN_PREFIX

        static final String SERVLET_PARAMETER_LEGACY_DESIGN_PREFIX
        Name of system or context property to write declarative syntax with the old "v-" prefix or with the new "vaadin-" prefix. The default value depends on the Vaadin branch used.
        Since:
        7.5.7
        See Also:
        DesignContext, Constant Field Values
      • ERROR_NO_UI_FOUND

        @Deprecated
        static final String ERROR_NO_UI_FOUND
        Deprecated.
        As of 7.1, this message is no longer used and might be removed from the code.
        See Also:
        Constant Field Values