Class/Object

org.http4s

Query

Related Docs: object Query | package http4s

Permalink

final class Query extends QueryOps with Renderable

Collection representation of a query string

It is a indexed sequence of key and maybe a value pairs which maps precisely to a query string, modulo the identity of separators.

When rendered, the resulting String will have the pairs separated by '&' while the key is separated from the value with '='

Linear Supertypes
Renderable, QueryOps, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Query
  2. Renderable
  3. QueryOps
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Self = Query

    Permalink
    Attributes
    protected
    Definition Classes
    QueryQueryOps

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +*?[T](values: Seq[T])(implicit arg0: QueryParam[T], arg1: QueryParamEncoder[T]): Self

    Permalink

    alias for withQueryParam

    alias for withQueryParam

    Definition Classes
    QueryOps
  4. def +*?[T](value: T)(implicit arg0: QueryParam[T], arg1: QueryParamEncoder[T]): Self

    Permalink

    alias for withQueryParam

    alias for withQueryParam

    Definition Classes
    QueryOps
  5. def ++(pairs: Iterable[(String, Option[String])]): Query

    Permalink
  6. def +:(elem: KeyValue): Query

    Permalink
  7. def +?[K, T](name: K, values: Seq[T])(implicit arg0: QueryParamKeyLike[K], arg1: QueryParamEncoder[T]): Self

    Permalink

    alias for withQueryParam

    alias for withQueryParam

    Definition Classes
    QueryOps
  8. def +?[K](name: K)(implicit arg0: QueryParamKeyLike[K]): Self

    Permalink

    alias for withQueryParam

    alias for withQueryParam

    Definition Classes
    QueryOps
  9. def +?[K, T](name: K, value: T)(implicit arg0: QueryParamKeyLike[K], arg1: QueryParamEncoder[T]): Self

    Permalink

    alias for withQueryParam

    alias for withQueryParam

    Definition Classes
    QueryOps
  10. def +?[T](implicit arg0: QueryParam[T]): Self

    Permalink

    alias for withQueryParam

    alias for withQueryParam

    Definition Classes
    QueryOps
  11. def +??[T](value: Option[T])(implicit arg0: QueryParam[T], arg1: QueryParamEncoder[T]): Self

    Permalink

    alias for withOptionQueryParam

    alias for withOptionQueryParam

    Definition Classes
    QueryOps
  12. def +??[K, T](name: K, value: Option[T])(implicit arg0: QueryParamKeyLike[K], arg1: QueryParamEncoder[T]): Self

    Permalink

    alias for withOptionQueryParam

    alias for withOptionQueryParam

    Definition Classes
    QueryOps
  13. def -?[K](key: K)(implicit arg0: QueryParamKeyLike[K]): Self

    Permalink

    alias for removeQueryParam

    alias for removeQueryParam

    Definition Classes
    QueryOps
  14. def -?[T](implicit key: QueryParam[T]): Self

    Permalink

    alias for removeQueryParam

    alias for removeQueryParam

    Definition Classes
    QueryOps
  15. def :+(elem: KeyValue): Query

    Permalink
  16. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def =?[T](q: Map[String, List[T]])(implicit arg0: QueryParamEncoder[T]): Self

    Permalink

    alias for setQueryParams

    alias for setQueryParams

    Definition Classes
    QueryOps
  18. def ?[K](name: K)(implicit arg0: QueryParamKeyLike[K]): Boolean

    Permalink

    alias for containsQueryParam

    alias for containsQueryParam

    Definition Classes
    QueryOps
  19. def apply(idx: Int): KeyValue

    Permalink
  20. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  21. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def containsQueryParam[K](key: K)(implicit arg0: QueryParamKeyLike[K]): Boolean

    Permalink
    Definition Classes
    QueryOps
  23. def containsQueryParam[T](implicit key: QueryParam[T]): Boolean

    Permalink

    Checks if a specified parameter exists in the Query.

    Checks if a specified parameter exists in the Query. A parameter without a name can be checked with an empty string.

    Definition Classes
    QueryOps
  24. def drop(n: Int): Query

    Permalink
  25. def dropRight(n: Int): Query

    Permalink
  26. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    Query → AnyRef → Any
  28. def exists(f: (KeyValue) ⇒ Boolean): Boolean

    Permalink
  29. def filter(f: (KeyValue) ⇒ Boolean): Query

    Permalink
  30. def filterNot(f: (KeyValue) ⇒ Boolean): Query

    Permalink
  31. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. def foldLeft[Z](z: Z)(f: (Z, KeyValue) ⇒ Z): Z

    Permalink
  33. def foldRight[Z](z: Eval[Z])(f: (KeyValue, Eval[Z]) ⇒ Eval[Z]): Eval[Z]

    Permalink
  34. def foreach(f: (KeyValue) ⇒ Unit): Unit

    Permalink
  35. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  36. def hashCode(): Int

    Permalink
    Definition Classes
    Query → AnyRef → Any
  37. def isEmpty: Boolean

    Permalink
  38. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  39. def length: Int

    Permalink
  40. lazy val multiParams: Map[String, Seq[String]]

    Permalink

    Map[String, Seq[String]] representation of the Query

    Map[String, Seq[String]] representation of the Query

    Params are represented as a Seq[String] and may be empty.

  41. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  42. def nonEmpty: Boolean

    Permalink
  43. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. val pairs: Vector[KeyValue]

    Permalink
  46. lazy val params: Map[String, String]

    Permalink

    Map[String, String] representation of the Query

    Map[String, String] representation of the Query

    If multiple values exist for a key, the first is returned. If none exist, the empty String "" is returned.

  47. val query: Query

    Permalink
    Attributes
    protected
    Definition Classes
    QueryQueryOps
  48. def removeQueryParam[K](key: K)(implicit arg0: QueryParamKeyLike[K]): Self

    Permalink

    Creates maybe a new Self without the specified parameter in query.

    Creates maybe a new Self without the specified parameter in query. If no parameter with the given key exists then this will be returned.

    Definition Classes
    QueryOps
  49. def render(writer: Writer): writer.type

    Permalink

    Render the Query as a String.

    Render the Query as a String.

    Pairs are separated by '&' and keys are separated from values by '='

    Definition Classes
    QueryRenderable
  50. def renderString: String

    Permalink

    Generates a String rendering of this object

    Generates a String rendering of this object

    Definition Classes
    Renderable
  51. def replaceQuery(query: Query): Self

    Permalink
    Attributes
    protected
    Definition Classes
    QueryQueryOps
  52. def self: Self

    Permalink
    Attributes
    protected
    Definition Classes
    QueryQueryOps
  53. def setQueryParams[K, T](params: Map[K, Seq[T]])(implicit arg0: QueryParamKeyLike[K], arg1: QueryParamEncoder[T]): Self

    Permalink

    Creates maybe a new Self with the specified parameters.

    Creates maybe a new Self with the specified parameters. The entire Query will be replaced with the given one.

    Definition Classes
    QueryOps
  54. def slice(from: Int, until: Int): Query

    Permalink
  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  56. def toList: List[(String, Option[String])]

    Permalink
  57. def toString(): String

    Permalink
    Definition Classes
    Renderable → Any
  58. def toVector: Vector[(String, Option[String])]

    Permalink
  59. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. def withOptionQueryParam[T](value: Option[T])(implicit arg0: QueryParam[T], arg1: QueryParamEncoder[T]): Self

    Permalink

    Creates maybe a new Self with the specified parameter in the Query.

    Creates maybe a new Self with the specified parameter in the Query. If the value is empty or if the parameter to be added equal the existing entry the same instance of Self will be returned. If a parameter with the given name already exists the values will be replaced.

    Definition Classes
    QueryOps
  63. def withOptionQueryParam[T, K](key: K, value: Option[T])(implicit arg0: QueryParamEncoder[T], arg1: QueryParamKeyLike[K]): Self

    Permalink

    Creates maybe a new Self with the specified parameter in the Query.

    Creates maybe a new Self with the specified parameter in the Query. If the value is empty or if the parameter to be added equal the existing entry the same instance of Self will be returned. If a parameter with the given key already exists the values will be replaced.

    Definition Classes
    QueryOps
  64. def withQueryParam[T, K](key: K, values: Seq[T])(implicit arg0: QueryParamEncoder[T], arg1: QueryParamKeyLike[K]): Self

    Permalink

    Creates maybe a new Self with the specified parameters in the Query.

    Creates maybe a new Self with the specified parameters in the Query. If a parameter with the given key already exists the values will be replaced.

    Definition Classes
    QueryOps
  65. def withQueryParam[T, K](key: K, value: T)(implicit arg0: QueryParamEncoder[T], arg1: QueryParamKeyLike[K]): Self

    Permalink

    Creates maybe a new Self with the specified parameter in the Query.

    Creates maybe a new Self with the specified parameter in the Query. If a parameter with the given key already exists the values will be replaced. If the parameter to be added equal the existing entry the same instance of Self will be returned.

    Definition Classes
    QueryOps
  66. def withQueryParam[K](key: K)(implicit arg0: QueryParamKeyLike[K]): Self

    Permalink

    Creates a new Self with the specified parameter in the Query.

    Creates a new Self with the specified parameter in the Query. If a parameter with the given key already exists the values will be replaced with an empty list.

    Definition Classes
    QueryOps
  67. def withQueryParam[T](implicit arg0: QueryParam[T]): Self

    Permalink

    Creates a new Self with the specified parameter in the Query.

    Creates a new Self with the specified parameter in the Query. If a parameter with the given QueryParam.key already exists the values will be replaced with an empty list.

    Definition Classes
    QueryOps

Inherited from Renderable

Inherited from QueryOps

Inherited from AnyRef

Inherited from Any

Ungrouped