You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.internal.

Class EncodeUtil

  • public final class EncodeUtil
    extends Object

    Utilities related to various encoding schemes.

    For internal use only. May be renamed or removed in a future release.

    Since:

    1.0

    Author:

    Vaadin Ltd

    • Method Detail

      • rfc5987Encode

        public static String rfc5987Encode​(String value)

        Encodes the given string to UTF-8 value-chars as defined in RFC5987 for use in e.g. the Content-Disposition HTTP header.

        Parameters:

        value - the string to encode, not null

        Returns:

        the encoded string