| Constructor and Description |
|---|
QueryParameters()
Creates empty query parameters.
|
QueryParameters(Http.QueryParameters source)
Creates query parameters as copy of the specified source.
|
QueryParameters(Map<String,String> source)
Creates query parameters as copy of the specified source.
|
QueryParameters(com.google.common.collect.Multimap<String,String> source)
Creates query parameters as copy of the specified source.
|
QueryParameters(String... keysAndValues)
Creates query parameters by alternating keys and values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
String value)
Adds the specified value to the key in this query parameters.
|
void |
clear()
Clears all keys and values in this query parameters.
|
boolean |
contains(String key)
Checks whether the specified key exists in this query parameters.
|
boolean |
containsKey(String key)
Checks whether the specified key exists in this query parameters.
|
Set<Map.Entry<String,String>> |
entries()
Gets Set of Map.Entry of this query parameters.
|
Set<Map.Entry<String,String>> |
entrySet()
Gets Set of Map.Entry of this query parameters.
|
boolean |
equals(Object o) |
List<String> |
get(String key)
Gets set of values of the specified key in this query parameters.
|
String |
getFirst(String key)
Gets the first value of the specified key in this query parameters.
|
int |
hashCode() |
Iterator<Map.Entry<String,String>> |
iterator()
Gets iterator of this query parameters.
|
boolean |
keyPrefixAny(String prefix)
Checks whether any key in this query parameters starts with the specified prefix or not.
|
Set<String> |
keys()
Gets all keys in this query parameters.
|
Set<String> |
keySet()
Gets set of values of the specified key in this query parameters.
|
static Http.QueryParameters |
merge(Http.QueryParameters... queryParamsList)
Creates new query parameters by merging keys and values from the specified query parameters
list.
|
Http.QueryParameters |
put(String key,
List<String> values)
Adds list of values for the specified key to this query parameters.
|
boolean |
put(String key,
String value)
Adds the specified value to the key in this query parameters.
|
Http.QueryParameters |
putAll(Http.QueryParameters source)
Adds all keys and values from the specified source to this query parameters.
|
Http.QueryParameters |
putAll(Map<String,String> source)
Adds all keys and values from the specified source to this query parameters.
|
Http.QueryParameters |
putAll(com.google.common.collect.Multimap<String,String> source)
Adds all keys and values from the specified source to this query parameters.
|
List<String> |
remove(String key)
Removes the specified key from this query parameters.
|
boolean |
remove(String key,
String value)
Removes the specified value of the specified key from this query parameters.
|
boolean |
removeAll(String key)
Removes the specified key from this query parameters.
|
void |
set(String key,
String value)
Sets the specified key and value in this query parameters.
|
int |
size()
Gets size of this query parameters.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic QueryParameters()
public QueryParameters(Http.QueryParameters source)
public QueryParameters(Map<String,String> source)
public QueryParameters(com.google.common.collect.Multimap<String,String> source)
public QueryParameters(String... keysAndValues)
public static Http.QueryParameters merge(Http.QueryParameters... queryParamsList)
public void add(@Nonnull String key, @Nonnull String value)
public void set(@Nonnull String key, @Nonnull String value)
public String getFirst(String key)
public boolean contains(String key)
public boolean keyPrefixAny(String prefix)
public Iterator<Map.Entry<String,String>> iterator()
public void clear()
public boolean containsKey(String key)
public Set<Map.Entry<String,String>> entrySet()
public Set<Map.Entry<String,String>> entries()
public List<String> get(String key)
public Set<String> keySet()
public boolean put(@Nonnull String key, @Nonnull String value)
public Http.QueryParameters put(@Nonnull String key, @Nonnull List<String> values)
public Http.QueryParameters putAll(Map<String,String> source)
public Http.QueryParameters putAll(com.google.common.collect.Multimap<String,String> source)
public Http.QueryParameters putAll(Http.QueryParameters source)
public boolean remove(String key, String value)
public boolean removeAll(String key)
public int size()