play.api.data.mapping

forms

package forms

Contains the validation API used by Form.

For example, to define a custom constraint:

val negative = Constraint[Int] {
case i if i < 0 => Valid
case _ => Invalid("Must be a negative number.")
}
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. forms
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait DefaultMonoids extends AnyRef

  2. type UrlFormEncoded = Map[String, Seq[String]]

Value Members

  1. object PM

    Play provides you a Map[String, Seq[String]] (aliased as UrlFormEncoded) in request body for urlFormEncoded requests.

    Play provides you a Map[String, Seq[String]] (aliased as UrlFormEncoded) in request body for urlFormEncoded requests. It's generally a lot more convenient to work on Map[Path, Seq[String]] to define Rules. This object contains methods used to convert Map[String, Seq[String]] <-> Map[Path, Seq[String]]

    Note

    We use the alias UrlFormEncoded, which is just a Map[String, Seq[String]]

  2. object Rules extends DefaultRules[PM] with ParsingRules

    This object provides Rules for Map[String, Seq[String]]

  3. object Writes extends DefaultWrites with GenericWrites[PM] with DefaultMonoids

Inherited from AnyRef

Inherited from Any

Ungrouped