public class FormData extends SimpleScriptable
FormData
.Modifier and Type | Class and Description |
---|---|
static class |
FormData.FormDataIterator |
Modifier and Type | Field and Description |
---|---|
static String |
FORM_DATA_TAG
Constant used to register the prototype in the context.
|
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).
|
net.sourceforge.htmlunit.corejs.javascript.Scriptable |
entries() |
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, has, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement
defineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isReadOnlySettable, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public static final String FORM_DATA_TAG
public 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 value
value
- 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 value
value
- the field's valuefilename
- the filename reported to the server (optional)public net.sourceforge.htmlunit.corejs.javascript.Scriptable entries()
public void fillRequest(WebRequest webRequest)
FormData
.webRequest
- the web request to fillCopyright © 2002–2021 Gargoyle Software Inc.. All rights reserved.