case class Optional[A, B](param: QueryParam[A], next: Path[B]) extends QueryParameter[Tuples.->[Option[A], B]] with Product with Serializable
An optional named url query parameter that is converted to and from a typed value. The actual conversion is
provided by arg. The routing function receives None if the url does not contain the query parameter. However
if it contains it, but param does not parse it, then the Path does not match.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Optional
- Serializable
- Product
- Equals
- QueryParameter
- Path
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Optional(param: QueryParam[A], next: Path[B])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def build(param: Tuples.->[Option[A], B]): Location
Returns the Location representing
param - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def encode: (Tuples.->[Option[A], B]) => (Location) => Location
- Attributes
- protected[simplerouter]
- Definition Classes
- Optional → Path
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val next: Path[B]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val param: QueryParam[A]
- def parse: (Location) => Option[(Option[A], B)]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def run[R](handler: (Tuples.->[Option[A], B]) => Option[R]): (Location) => Option[R]
Given a route value, returns a
PartialFunctionthat parses a Location and passes the parameters to the route value, if applicable - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()