Object

unfiltered.request

QParams

Related Doc: package request

Permalink

object QParams

Fined-grained error reporting for arbitrarily many failing parameters. Import QParams._ to use; see ParamsSpec for examples.

Annotations
@deprecated
Deprecated

(Since version 0.8.3) This validation scheme is deprecated, use Directives instead

Source
params.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QParams
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Fail[E](name: String, error: E) extends Product with Serializable

    Permalink
  2. type Log[E] = List[Fail[E]]

    Permalink
  3. type QueryFn[E, A] = (Map, Option[String], Log[E]) ⇒ (Option[String], Log[E], A)

    Permalink
  4. case class QueryM[E, A](exec: QueryFn[E, A]) extends Product with Serializable

    Permalink
  5. type QueryResult[E, A] = Either[Log[E], A]

    Permalink
  6. case class QueryResultX[E, A](r: QueryResult[E, A]) extends Product with Serializable

    Permalink
  7. type Report[E, A] = Either[E, Option[A]]

    Permalink

    Left if the query has failed, right if it has not (but may be empty)

  8. type Reporter[E, A, B] = (Option[A]) ⇒ Report[E, B]

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def even[E](e: (Int) ⇒ E): Reporter[E, Int, Int]

    Permalink
  9. def external[E, A](key: String, value: Option[A]): QueryM[E, Option[A]]

    Permalink

    Create and name a validation token for an external input

  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def ignore[E, A, B](f: (Option[A]) ⇒ Option[B]): Reporter[E, A, B]

    Permalink

    Convert f into an error reporter that never reports errors

  14. def int[E](e: (String) ⇒ E): Reporter[E, String, Int]

    Permalink
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def long[E](e: (String) ⇒ E): Reporter[E, String, Long]

    Permalink
  17. def lookup[E](key: String): QueryM[E, Option[String]]

    Permalink

    Create a validation token from a named value from the input Params.Map

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def nonempty[E](e: E): Reporter[E, String, String]

    Permalink
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def odd[E](e: (Int) ⇒ E): Reporter[E, Int, Int]

    Permalink
  23. def optional[E, A](xs: Option[A]): Report[E, Option[A]]

    Permalink
  24. def pred[E, A](p: (A) ⇒ Boolean, err: (A) ⇒ E): Reporter[E, A, A]

    Permalink

    Convert a predicate into an error reporter

  25. implicit def queryOrElse[E, A](r: QueryResult[E, A]): QueryResultX[E, A]

    Permalink
  26. def required[E, A](err: E): Reporter[E, A, A]

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

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def trimmed[E]: Reporter[E, String, String]

    Permalink
  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def watch[E, A, B](c: (Option[A]) ⇒ Option[B], err: (A) ⇒ E): Reporter[E, A, B]

    Permalink

    Promote c to an error reporter that fails if Some input is discarded

Inherited from AnyRef

Inherited from Any

Ungrouped