@DOMObjectAttribute @DOMNameAttribute(name="UrlSearchParams") public interface IUrlSearchParams extends com.aspose.ms.System.Collections.Generic.IGenericEnumerable<java.lang.String[]>
Provides methods to work with URLs query string.
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String name,
java.lang.String value)
Appends a new name-value pair whose name is
name and value is value . |
void |
delete(java.lang.String name)
Removes all name-value pairs whose name is
name . |
java.lang.String |
get(java.lang.String name)
Returns value of the first name-value pair whose name is
name . |
com.aspose.ms.System.Collections.Generic.List<java.lang.String> |
getAll(java.lang.String name)
Returns all values whose name is
name . |
boolean |
has(java.lang.String name)
Checks if there is a name-value pair whose name is
name in list. |
void |
set(java.lang.String name,
java.lang.String value)
Sets value of the first found name-value pair to the specified value and removes the others.
|
void |
sort()
Sorts all name-value pairs, if any, by their names.
|
@DOMNameAttribute(name="append") void append(java.lang.String name, java.lang.String value)
Appends a new name-value pair whose name is name
and value is value
.
name
- Name of the new name-value pair.value
- Value of the new name-value pair.@DOMNameAttribute(name="delete") void delete(java.lang.String name)
Removes all name-value pairs whose name is name
.
name
- Key which will be used to find name-value pairs.@DOMNameAttribute(name="get") java.lang.String get(java.lang.String name)
Returns value of the first name-value pair whose name is name
.
name
- Key which will be used to find name-value pair.name
or null
if there is none.@DOMNameAttribute(name="getAll") com.aspose.ms.System.Collections.Generic.List<java.lang.String> getAll(java.lang.String name)
Returns all values whose name is name
.
name
- Key which will be used to find name-value pair.name
.@DOMNameAttribute(name="has") boolean has(java.lang.String name)
Checks if there is a name-value pair whose name is name
in list.
name
- Key which will be used to find name-value pair.True
if there is a name-value pair whose name is name
in list, and false
otherwise.@DOMNameAttribute(name="set") void set(java.lang.String name, java.lang.String value)
Sets value of the first found name-value pair to the specified value and removes the others. If no name-value pairs with the specified name are found, new one will be appended to the list.
name
- Key which will be used to find name-value pairs.value
- Value which will be set.@DOMNameAttribute(name="sort") void sort()
Sorts all name-value pairs, if any, by their names.