Packages

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
Visibility
  1. Public
  2. All

Type Members

  1. type PM = Map[Path, String]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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

  6. 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

  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. 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

  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  18. def repath(m: UrlFormEncoded, f: (Path) ⇒ Path): UrlFormEncoded

    Apply f to all the keys of m

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

    Apply f to all the keys of m

  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toM(m: PM): UrlFormEncoded

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

  22. def toPM(m: UrlFormEncoded): PM

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

  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. 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"

Inherited from AnyRef

Inherited from Any

Ungrouped