public class FormData extends SimpleScriptable
FormData.| Constructor and Description |
|---|
FormData()
Default constructor.
|
FormData(Object formObj)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(String name,
Object value,
Object filename)
Appends a new value onto an existing key inside a
FormData object,
or adds the key if it does not already exist. |
void |
delete_js(String name)
Removes the entry (if exists).
|
void |
fillRequest(WebRequest webRequest)
Sets the specified request with the parameters in this
FormData. |
String |
get(String name) |
net.sourceforge.htmlunit.corejs.javascript.Scriptable |
getAll(String name) |
boolean |
has(String name) |
void |
set(String name,
Object value,
Object filename)
Sets a new value for an existing key inside a
FormData object,
or adds the key if it does not already exist. |
clone, equivalentValues, get, getBrowserVersion, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, setClassName, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic FormData()
public FormData(Object formObj)
formObj - a formpublic void append(String name, Object value, Object filename)
FormData object,
or adds the key if it does not already exist.name - the name of the field whose data is contained in valuevalue - the field's valuefilename - the filename reported to the server (optional)public void delete_js(String name)
name - the name of the field to removepublic String get(String name)
name - the name of the field to checkpublic net.sourceforge.htmlunit.corejs.javascript.Scriptable getAll(String name)
name - the name of the field to checkpublic boolean has(String name)
name - the name of the field to checkpublic void set(String name, Object value, Object filename)
FormData object,
or adds the key if it does not already exist.name - the name of the field whose data is contained in valuevalue - the field's valuefilename - the filename reported to the server (optional)public void fillRequest(WebRequest webRequest)
FormData.webRequest - the web request to fillCopyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.