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 FormEncodingTypeMultipart form encoding (used to be a constant in HttpClient but it was deprecated with no alternative).static final FormEncodingTypetext/plain.static final FormEncodingTypeURL-encoded form encoding. -
Method Summary
Modifier and TypeMethodDescriptionstatic FormEncodingTypegetInstance(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.
-
-
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_ENCODEDif none match.
-
toString
Returns a string representation of this object.
-