Package ai.vespa.http
Class HttpURL.Query
java.lang.Object
ai.vespa.http.HttpURL.Query
- Enclosing class:
- HttpURL
-
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this with the decoded non-null key pointing to "nothing".Returns a copy of this with the decoded non-null key pointing to the decoded non-null value.Returns a copy of this with all given mappings appended to this.static HttpURL.Query
empty()
Creates a new, empty query part.static HttpURL.Query
Creates a new, empty query part, using the indicated string wrapper for keys and non-null values.entries()
A mutable copy of the URL decoded key-value pairs that make up this query.boolean
int
hashCode()
A mutable copy of the URL decoded key-value pairs that make up this query.static HttpURL.Query
Parses the given raw query string.static HttpURL.Query
Parses the given raw query string, using the validator on all keys and non-null values.Returns a copy of this without any key-value pair with the decoded key.remove
(Collection<String> keys) Returns a copy of this with all given keys removed.Returns a copy of this with the decoded non-null key only pointing to "nothing".Returns a copy of this with the decoded non-null key pointing only to the decoded non-null value.Returns a copy of this with all given mappings added to this, possibly replacing existing mappings.toString()
Intentionally not usable for constructing new URIs.
-
Method Details
-
empty
Creates a new, empty query part. -
empty
Creates a new, empty query part, using the indicated string wrapper for keys and non-null values. -
parse
Parses the given raw query string. -
parse
Parses the given raw query string, using the validator on all keys and non-null values. -
add
Returns a copy of this with the decoded non-null key pointing to the decoded non-null value. -
add
Returns a copy of this with the decoded non-null key pointing to "nothing". -
set
Returns a copy of this with the decoded non-null key pointing only to the decoded non-null value. -
set
Returns a copy of this with the decoded non-null key only pointing to "nothing". -
remove
Returns a copy of this without any key-value pair with the decoded key. -
add
Returns a copy of this with all given mappings appended to this.null
values, but not lists of values, are allowed. -
set
Returns a copy of this with all given mappings added to this, possibly replacing existing mappings. -
remove
Returns a copy of this with all given keys removed. -
lastEntries
A mutable copy of the URL decoded key-value pairs that make up this query. Keys and values may be""
, and values arenull
when only key was specified. When a key was used multiple times, this map contains only the last value associated with the key. -
entries
A mutable copy of the URL decoded key-value pairs that make up this query. Keys and values may be""
, and values (not lists of values) arenull
when only key was specified. When a key was used multiple times, this map lists the values in the same order as they were given. -
toString
Intentionally not usable for constructing new URIs. UseHttpURL
for that instead. -
equals
-
hashCode
public int hashCode()
-