Package com.jbstrap.ui.components.form
Enum Class FormEncoding
- All Implemented Interfaces:
Serializable
,Comparable<FormEncoding>
,Constable
Enum containing the possible encoding types of the form data.
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe data is not encoded.The space character will be "+", while special characters will not be converted.Every character is encoded, according to URL encode standard, before sending. -
Method Summary
Modifier and TypeMethodDescriptionstatic FormEncoding
Determines the method, based on the specified HTML ID stringgetValue()
Gets the HTML ID string that corresponds to the methodstatic FormEncoding
Returns the enum constant of this class with the specified name.static FormEncoding[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
URL_ENCODED
Every character is encoded, according to URL encode standard, before sending. (The space character will be "+", while special characters will be converted into their ASCII hex code.) -
MULTIPART
The data is not encoded. Used when the form contains files. Default encoding type. -
PLAIN
The space character will be "+", while special characters will not be converted.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getValue
Gets the HTML ID string that corresponds to the method- Returns:
- The HTML string that corresponds to the method
-
fromValue
Determines the method, based on the specified HTML ID string- Parameters:
value
- The HTML ID string- Returns:
- The corresponding method or
null
, if not found
-