Enum Class NativeForm.Enctype

java.lang.Object
java.lang.Enum<NativeForm.Enctype>
com.vaadin.flow.component.html.NativeForm.Enctype
All Implemented Interfaces:
Serializable, Comparable<NativeForm.Enctype>, Constable
Enclosing class:
NativeForm

public static enum NativeForm.Enctype extends Enum<NativeForm.Enctype>
The encoding of the form data when the form is submitted with NativeForm.Method.POST.
  • Enum Constant Details

    • URLENCODED

      public static final NativeForm.Enctype URLENCODED
      Encodes the fields as application/x-www-form-urlencoded. This is what the browser does when no encoding is set.
    • MULTIPART

      public static final NativeForm.Enctype MULTIPART
      Encodes the fields as multipart/form-data, which is needed to submit the content of an <input type="file">.
    • PLAIN

      public static final NativeForm.Enctype PLAIN
      Encodes the fields as text/plain.
  • Method Details

    • values

      public static NativeForm.Enctype[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NativeForm.Enctype valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Returns the attribute value as it appears in the rendered HTML.
      Returns:
      the enctype attribute value