com.gargoylesoftware.htmlunit
Class FormEncodingType

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.FormEncodingType

public final class FormEncodingType
extends Object

A collection of constants that represent the various ways a form can be encoded when submitted

Version:
$Revision: 2132 $
Author:
Brad Clarke

Field Summary
static FormEncodingType MULTIPART
          MULTIPART This used to be a constant in HttpClient but it was deprecated with no alternative.
static FormEncodingType URL_ENCODED
          URL_ENCODED
 
Method Summary
static FormEncodingType getInstance(String name)
          Return the constant that matches the given name
 String getName()
          Return the name of this EncodingType
 String toString()
          Return a string representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

URL_ENCODED

public static final FormEncodingType URL_ENCODED
URL_ENCODED


MULTIPART

public static final FormEncodingType MULTIPART
MULTIPART This used to be a constant in HttpClient but it was deprecated with no alternative.

Method Detail

getName

public String getName()
Return the name of this EncodingType

Returns:
See above

getInstance

public static FormEncodingType getInstance(String name)
Return the constant that matches the given name

Parameters:
name - The name to search by
Returns:
See above

toString

public String toString()
Return a string representation of this object

Overrides:
toString in class Object
Returns:
See above


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.