class Parsing[A] extends PathBindable[A]
Ordering
- Alphabetic
- By Inheritance
Inherited
- Parsing
- PathBindable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Parsing(parse: (String) => A, serialize: (A) => String, error: (String, Exception) => String)
- parse
a function to parse the path value
- serialize
a function to serialize the path value to a string
- error
a function for rendering an error message if an error occurs
Value Members
- def bind(key: String, value: String): Either[String, A]
Bind an URL path parameter.
Bind an URL path parameter.
- key
Parameter key
- value
The value as String (extracted from the URL path)
- returns
Right
of the value orLeft
of an error message if the binding failed
- Definition Classes
- → PathBindable
- def javascriptUnbind: String
Javascript function to unbind in the Javascript router.
Javascript function to unbind in the Javascript router.
- Definition Classes
- PathBindable
- def transform[B](toB: (A) => B, toA: (B) => A): PathBindable[B]
Transform this PathBinding[A] to PathBinding[B]
Transform this PathBinding[A] to PathBinding[B]
- Definition Classes
- PathBindable
- def unbind(key: String, value: A): String
Unbind a URL path parameter.
A helper class for creating PathBindables to map the value of a path pattern/segment
the type being parsed