Package io.minio

Class Http.QueryParameters

java.lang.Object
io.minio.Http.QueryParameters
All Implemented Interfaces:
Iterable<Map.Entry<String,String>>
Enclosing class:
Http

public static class Http.QueryParameters extends Object implements Iterable<Map.Entry<String,String>>
HTTP query parameters.
  • Constructor Details

    • QueryParameters

      public QueryParameters()
      Creates empty query parameters.
    • QueryParameters

      public QueryParameters(Http.QueryParameters source)
      Creates query parameters as copy of the specified source.
    • QueryParameters

      public QueryParameters(Map<String,String> source)
      Creates query parameters as copy of the specified source.
    • QueryParameters

      public QueryParameters(com.google.common.collect.Multimap<String,String> source)
      Creates query parameters as copy of the specified source.
    • QueryParameters

      public QueryParameters(String... keysAndValues)
      Creates query parameters by alternating keys and values.
  • Method Details

    • merge

      public static Http.QueryParameters merge(Http.QueryParameters... queryParamsList)
      Creates new query parameters by merging keys and values from the specified query parameters list.
    • add

      public void add(@Nonnull String key, @Nonnull String value)
      Adds the specified value to the key in this query parameters.
    • set

      public void set(@Nonnull String key, @Nonnull String value)
      Sets the specified key and value in this query parameters.
    • getFirst

      public String getFirst(String key)
      Gets the first value of the specified key in this query parameters.
    • contains

      public boolean contains(String key)
      Checks whether the specified key exists in this query parameters.
    • keyPrefixAny

      public boolean keyPrefixAny(String prefix)
      Checks whether any key in this query parameters starts with the specified prefix or not.
    • keys

      public Set<String> keys()
      Gets all keys in this query parameters.
    • iterator

      public Iterator<Map.Entry<String,String>> iterator()
      Gets iterator of this query parameters.
      Specified by:
      iterator in interface Iterable<Map.Entry<String,String>>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clear

      public void clear()
      Clears all keys and values in this query parameters.
    • containsKey

      public boolean containsKey(String key)
      Checks whether the specified key exists in this query parameters.
    • entrySet

      public Set<Map.Entry<String,String>> entrySet()
      Gets Set of Map.Entry of this query parameters.
    • entries

      public Set<Map.Entry<String,String>> entries()
      Gets Set of Map.Entry of this query parameters.
    • get

      public List<String> get(String key)
      Gets set of values of the specified key in this query parameters.
    • keySet

      public Set<String> keySet()
      Gets set of values of the specified key in this query parameters.
    • put

      public boolean put(@Nonnull String key, @Nonnull String value)
      Adds the specified value to the key in this query parameters.
    • put

      public Http.QueryParameters put(@Nonnull String key, @Nonnull List<String> values)
      Adds list of values for the specified key to this query parameters.
    • putAll

      public Http.QueryParameters putAll(Map<String,String> source)
      Adds all keys and values from the specified source to this query parameters.
    • putAll

      public Http.QueryParameters putAll(com.google.common.collect.Multimap<String,String> source)
      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

      public List<String> remove(String key)
      Removes the specified key from this query parameters.
    • remove

      public boolean remove(String key, String value)
      Removes the specified value of the specified key from this query parameters.
    • removeAll

      public boolean removeAll(String key)
      Removes the specified key from this query parameters.
    • size

      public int size()
      Gets size of this query parameters.