Class JavaQuery

java.lang.Object
akka.http.javadsl.model.Query
akka.http.impl.model.JavaQuery
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public final class JavaQuery extends Query implements scala.Product, Serializable
INTERNAL API
See Also:
  • Constructor Details

    • JavaQuery

      public JavaQuery(Uri.Query query)
  • Method Details

    • apply

      public abstract static R apply(T1 v1)
    • query

      public Uri.Query query()
    • get

      public Optional<String> get(String key)
      Description copied from class: Query
      Returns the value of the first parameter with the given key if it exists.
      Specified by:
      get in class Query
    • toMap

      public Map<String,String> toMap()
      Description copied from class: Query
      Returns a key/value map of the parameters of this Query. Use the `toList()` method to return all parameters if keys may occur multiple times.
      Specified by:
      toMap in class Query
    • toList

      public List<akka.japi.Pair<String,String>> toList()
      Description copied from class: Query
      Returns a `List` of all parameters of this Query. Use the `toMap()` method to filter out entries with duplicated keys.
      Specified by:
      toList in class Query
    • getOrElse

      public String getOrElse(String key, String _default)
      Description copied from class: Query
      Returns the value of the first parameter with the given key or the provided default value.
      Specified by:
      getOrElse in class Query
    • toMultiMap

      public Map<String,List<String>> toMultiMap()
      Description copied from class: Query
      Returns a `Map` of all parameters of this Query. Use the `toMap()` method to filter out entries with duplicated keys.
      Specified by:
      toMultiMap in class Query
    • getAll

      public List<String> getAll(String key)
      Description copied from class: Query
      Returns the value of all parameters with the given key.
      Specified by:
      getAll in class Query
    • toString

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

      public Query withParam(String key, String value)
      Description copied from class: Query
      Returns a copy of this instance with a query parameter added.
      Specified by:
      withParam in class Query
    • render

      public String render(HttpCharset charset)
      Description copied from class: Query
      Renders this Query into its string representation using the given charset.
      Specified by:
      render in class Query
    • render

      public String render(HttpCharset charset, akka.parboiled2.CharPredicate keep)
      Description copied from class: Query
      Renders this Query into its string representation using the given charset and char predicate.
      Specified by:
      render in class Query