object Params
Basic parameter access, and a pattern matching extractor in Extract.
- Source
- params.scala
- Alphabetic
- By Inheritance
- Params
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
Extract[T] extends AnyRef
Base class for parameter extractor objects, may be extended inline with chained ParamMapper objects.
- type Map = scala.collection.Map[String, Seq[String]]
-
class
ParamMapper[B] extends (Seq[String]) ⇒ Option[B]
A function Seq[String] => Option[B] used to test and transform values from the parameter map.
A function Seq[String] => Option[B] used to test and transform values from the parameter map. Conditions may be chained with
~>
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def double(os: Option[String]): Option[Double]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val even: (Option[Int]) ⇒ Option[Int]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
first: ParamMapper[String]
Maps first parameter, if present.
- def float(os: Option[String]): Option[Float]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def int(os: Option[String]): Option[Int]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def long(os: Option[String]): Option[Long]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nonempty: (Option[String]) ⇒ Option[String]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val odd: (Option[Int]) ⇒ Option[Int]
-
def
pred[A](p: (A) ⇒ Boolean): (Option[A]) ⇒ Option[A]
Construct a parameter predicate
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def trimmed(s: Option[String]): Option[String]
-
def
unapply[T](req: HttpRequest[T]): Some[scala.collection.immutable.Map[String, Seq[String]]]
Given a req, extract the request params into a (Map[String, Seq[String]], request).
Given a req, extract the request params into a (Map[String, Seq[String]], request). The Map is assigned a default value of Nil, so param("p") would return Nil if there is no such parameter, or (as normal for servlets) a single empty string if the parameter was supplied without a value.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )