play.api.data.mapping.forms

PM

object PM

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]]

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PM
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type PM = Map[Path, String]

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object PathParser extends RegexParsers

    A parser converting a key of a Map[String, [Seq[String]]] to a Path instance foo.bar[0].baz becomes Path \ "foo" \ "bar" \ 0 \ "baz"

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def asKey(p: Path): String

    Convert a Path to a String key

    Convert a Path to a String key

    p

    The path to convert

    returns

    A String representation of p

  9. def asPath(k: String): Path

    Convert a String key to a Path using PathParser

    Convert a String key to a Path using PathParser

    k

    The String representation of path to convert

    returns

    a Path

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def find(path: Path)(data: PM): PM

    Find a sub-Map of all the elements at a Path starting with path

    Find a sub-Map of all the elements at a Path starting with path

    path

    The prefix to look for

    data

    The map in which you want to lookup

    returns

    a sub Map. If no key of data starts with path, this map will be empty

  15. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def repath(m: UrlFormEncoded, f: (Path) ⇒ Path): UrlFormEncoded

    Apply f to all the keys of m

  22. def repathPM(m: PM, f: (Path) ⇒ Path): PM

    Apply f to all the keys of m

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

    Definition Classes
    AnyRef
  24. def toM(m: PM): UrlFormEncoded

    Convert a Map[Path, Seq[String]] to a Map[String, Seq[String]]

  25. def toPM(m: UrlFormEncoded): PM

    Convert a Map[String, Seq[String]] to a Map[Path, Seq[String]]

  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped