Package org.htmlunit
Class FormEncodingType
java.lang.Object
org.htmlunit.FormEncodingType
- All Implemented Interfaces:
Serializable
A collection of constants that represent the various ways a form can be encoded when submitted.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FormEncodingType
Multipart form encoding (used to be a constant in HttpClient but it was deprecated with no alternative).private final String
static final FormEncodingType
text/plain.static final FormEncodingType
URL-encoded form encoding. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FormEncodingType
getInstance
(String name) Returns the constant that matches the specified name.getName()
Returns the name of this encoding type.toString()
Returns a string representation of this object.
-
Field Details
-
URL_ENCODED
URL-encoded form encoding. -
MULTIPART
Multipart form encoding (used to be a constant in HttpClient but it was deprecated with no alternative). -
TEXT_PLAIN
text/plain. -
name_
-
-
Constructor Details
-
FormEncodingType
-
-
Method Details
-
getName
Returns the name of this encoding type.- Returns:
- the name of this encoding type
-
getInstance
Returns the constant that matches the specified name.- Parameters:
name
- the name to search by- Returns:
- the constant corresponding to the specified name,
URL_ENCODED
if none match.
-
toString
Returns a string representation of this object.
-