public class FormData extends HtmlUnitScriptable
FormData
.Modifier and Type | Class and Description |
---|---|
static class |
FormData.FormDataIterator
FormDate iterator support.
|
org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
Modifier and Type | Field and Description |
---|---|
static String |
FORM_DATA_TAG
Constant used to register the prototype in the context.
|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
FormData() |
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).
|
org.htmlunit.corejs.javascript.Scriptable |
entries() |
void |
fillRequest(WebRequest webRequest)
Sets the specified request with the parameters in this
FormData . |
void |
forEach(Object callback)
The FormData.forEach() method allows iteration through
all key/value pairs contained in this object via a callback function.
|
String |
get(String name) |
org.htmlunit.corejs.javascript.Scriptable |
getAll(String name) |
boolean |
has(String name) |
void |
jsConstructor(Object formObj)
Constructor.
|
Object |
keys()
The FormData.keys() method returns an iterator allowing to go through
all keys contained in this object.
|
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. |
Object |
values()
The URLSearchParams.values() method returns an iterator allowing to go through
all values contained in this object.
|
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
public static final String FORM_DATA_TAG
public void jsConstructor(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 org.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 org.htmlunit.corejs.javascript.Scriptable entries()
public void fillRequest(WebRequest webRequest)
FormData
.webRequest
- the web request to fillpublic void forEach(Object callback)
callback
- Function to execute on each key/value pairspublic Object keys()
public Object values()
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.