All Implemented Interfaces:
TagBase, FormAttributable, Serializable, Cloneable

public class EncType extends AbstractAttribute implements FormAttributable

 The enctype property sets or returns the value of the enctype attribute in a form.

 The enctype attribute specifies how form-data should be encoded before sending it to the server.

 The form-data is encoded to "application/x-www-form-urlencoded" by default. This means that all characters are encoded before they are sent to the server (spaces are converted to "+" symbols, and special characters are converted to ASCII HEX values).
 
enctype attribute for form element .
Since:
1.1.4
See Also:
  • Field Details

    • URL_ENCODED

      public static final String URL_ENCODED
      All characters are encoded before sent (this is default). It represents application/x-www-form-urlencoded.
      See Also:
    • MULTIPART

      public static final String MULTIPART
      No characters are encoded. This value is required when you are using forms that have a file upload control. It represents multipart/form-data.
      See Also:
    • TEXT_PLAIN

      public static final String TEXT_PLAIN
      Spaces are converted to "+" symbols, but no special characters are encoded. It represents text/plain
      See Also:
  • Constructor Details

    • EncType

      public EncType()
      application/x-www-form-urlencoded will be set as value.
      Since:
      1.1.4
    • EncType

      public EncType(String value)
      Parameters:
      value - the value for the attribute
      Since:
      1.1.4
  • Method Details

    • setValue

      public void setValue(String value)
      sets the value for this attribute
      Parameters:
      value - the value for the attribute.
      Since:
      1.1.4
    • setValue

      public void setValue(boolean updateClient, String value)
      sets the value for this attribute
      Parameters:
      updateClient - true to update client browser page if it is available. The default value is true but it will be ignored if there is no client browser page.
      value - the value for the attribute.
      Since:
      2.1.15
    • getValue

      public String getValue()
      gets the value of this attribute
      Returns:
      the value of the attribute
      Since:
      1.1.4
    • init

      protected void init()
      invokes only once per object
      Since:
      1.1.4