Class EncType

  • All Implemented Interfaces:
    TagBase, FormAttributable, java.io.Serializable, java.lang.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:
    Serialized Form
    • Field Detail

      • URL_ENCODED

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

        public static final java.lang.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:
        Constant Field Values
      • TEXT_PLAIN

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

      • EncType

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

        public EncType​(java.lang.String value)
        Parameters:
        value - the value for the attribute
        Since:
        1.1.4
    • Method Detail

      • setValue

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

        public java.lang.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