public class URLSearchParams extends SimpleScriptable
URLSearchParams.| Constructor and Description |
|---|
URLSearchParams()
Constructs a new instance.
|
URLSearchParams(Object params)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(String name,
String value)
The append() method of the URLSearchParams interface appends a specified
key/value pair as a new search parameter.
|
void |
delete(String name)
The delete() method of the URLSearchParams interface deletes the given search
parameter and its associated value, from the list of all search parameters.
|
Object |
entries()
The URLSearchParams.entries() method returns an iterator allowing to go through
all key/value pairs contained in this object.
|
String |
get(String name)
The get() method of the URLSearchParams interface returns the
first value associated to the given search parameter.
|
net.sourceforge.htmlunit.corejs.javascript.NativeArray |
getAll(String name)
The getAll() method of the URLSearchParams interface returns all the values
associated with a given search parameter as an array.
|
Object |
getDefaultValue(Class<?> hint)
Calls for instance for implicit conversion to string.
|
boolean |
has(String name)
The has() method of the URLSearchParams interface returns a Boolean that
indicates whether a parameter with the specified name exists.
|
Object |
keys()
The URLSearchParams.keys() method returns an iterator allowing to go through
all keys contained in this object.
|
void |
set(String name,
String value)
The set() method of the URLSearchParams interface sets the value associated with a
given search parameter to the given value.
|
Object |
values()
The URLSearchParams.values() method returns an iterator allowing to go through
all values contained in this object.
|
clone, equivalentValues, get, getBrowserVersion, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getWindow, getWindow, getWithPreemption, has, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElementdefineFunctionProperties, defineProperty, getClassName, put, setClassName, setParentScopeapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, 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, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, sizepublic URLSearchParams()
public URLSearchParams(Object params)
params - the params stringpublic void append(String name, String value)
name - The name of the parameter to append.value - The value of the parameter to append.public void delete(String name)
delete in interface net.sourceforge.htmlunit.corejs.javascript.Scriptabledelete in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObjectname - The name of the parameter to be deleted.public String get(String name)
name - The name of the parameter to return.public net.sourceforge.htmlunit.corejs.javascript.NativeArray getAll(String name)
name - The name of the parameter to return.public void set(String name, String value)
name - The name of the parameter to set.value - The value of the parameter to set.public boolean has(String name)
name - The name of the parameter to find.public Object entries()
public Object keys()
public Object values()
public Object getDefaultValue(Class<?> hint)
getDefaultValue in interface net.sourceforge.htmlunit.corejs.javascript.ScriptablegetDefaultValue in class SimpleScriptablehint - the type hintSimpleScriptable.getDefaultValue(java.lang.Class)Copyright © 2002–2019 Gargoyle Software Inc.. All rights reserved.