Enum Class NativeForm.Method

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

public static enum NativeForm.Method extends Enum<NativeForm.Method>
The HTTP method the browser uses to submit the form.
  • Enum Constant Details

    • GET

      public static final NativeForm.Method GET
      Appends the form data to the action URL as a query string. This is what the browser does when the method attribute is removed. Do not use it for sensitive values such as passwords, which then end up in the URL.
    • POST

      public static final NativeForm.Method POST
      Sends the form data in the request body. This is the method of a new NativeForm.
    • DIALOG

      public static final NativeForm.Method DIALOG
      Closes the <dialog> element the form is in instead of sending a request.
  • Method Details

    • values

      public static NativeForm.Method[] 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.Method 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 method attribute value