Package io.minio
Class Http.QueryParameters
java.lang.Object
io.minio.Http.QueryParameters
- Enclosing class:
- Http
public static class Http.QueryParameters
extends Object
implements Iterable<Map.Entry<String,String>>
HTTP query parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates empty query parameters.QueryParameters(com.google.common.collect.Multimap<String, String> source) Creates query parameters as copy of the specified source.QueryParameters(Http.QueryParameters source) Creates query parameters as copy of the specified source.QueryParameters(String... keysAndValues) Creates query parameters by alternating keys and values.QueryParameters(Map<String, String> source) Creates query parameters as copy of the specified source. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the specified value to the key in this query parameters.voidclear()Clears all keys and values in this query parameters.booleanChecks whether the specified key exists in this query parameters.booleancontainsKey(String key) Checks whether the specified key exists in this query parameters.entries()Gets Set of Map.Entry of this query parameters.entrySet()Gets Set of Map.Entry of this query parameters.booleanGets set of values of the specified key in this query parameters.Gets the first value of the specified key in this query parameters.inthashCode()iterator()Gets iterator of this query parameters.booleankeyPrefixAny(String prefix) Checks whether any key in this query parameters starts with the specified prefix or not.keys()Gets all keys in this query parameters.keySet()Gets set of values of the specified key in this query parameters.static Http.QueryParametersmerge(Http.QueryParameters... queryParamsList) Creates new query parameters by merging keys and values from the specified query parameters list.booleanAdds the specified value to the key in this query parameters.Adds list of values for the specified key to this query parameters.Adds all keys and values from the specified source to this query parameters.putAll(Http.QueryParameters source) Adds all keys and values from the specified source to this query parameters.Adds all keys and values from the specified source to this query parameters.Removes the specified key from this query parameters.booleanRemoves the specified value of the specified key from this query parameters.booleanRemoves the specified key from this query parameters.voidSets the specified key and value in this query parameters.intsize()Gets size of this query parameters.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
QueryParameters
public QueryParameters()Creates empty query parameters. -
QueryParameters
Creates query parameters as copy of the specified source. -
QueryParameters
Creates query parameters as copy of the specified source. -
QueryParameters
Creates query parameters as copy of the specified source. -
QueryParameters
Creates query parameters by alternating keys and values.
-
-
Method Details
-
merge
Creates new query parameters by merging keys and values from the specified query parameters list. -
add
Adds the specified value to the key in this query parameters. -
set
Sets the specified key and value in this query parameters. -
getFirst
Gets the first value of the specified key in this query parameters. -
contains
Checks whether the specified key exists in this query parameters. -
keyPrefixAny
Checks whether any key in this query parameters starts with the specified prefix or not. -
keys
Gets all keys in this query parameters. -
iterator
Gets iterator of this query parameters. -
toString
-
equals
-
hashCode
public int hashCode() -
clear
public void clear()Clears all keys and values in this query parameters. -
containsKey
Checks whether the specified key exists in this query parameters. -
entrySet
Gets Set of Map.Entry of this query parameters. -
entries
Gets Set of Map.Entry of this query parameters. -
get
Gets set of values of the specified key in this query parameters. -
keySet
Gets set of values of the specified key in this query parameters. -
put
Adds the specified value to the key in this query parameters. -
put
Adds list of values for the specified key to this query parameters. -
putAll
Adds all keys and values from the specified source to this query parameters. -
putAll
Adds all keys and values from the specified source to this query parameters. -
putAll
Adds all keys and values from the specified source to this query parameters. -
remove
Removes the specified key from this query parameters. -
remove
Removes the specified value of the specified key from this query parameters. -
removeAll
Removes the specified key from this query parameters. -
size
public int size()Gets size of this query parameters.
-