Class

com.outworkers.util.play

ValidationResponseHelper

Related Doc: package play

Permalink

implicit final class ValidationResponseHelper[+A] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValidationResponseHelper
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ValidationResponseHelper(vd: ValidatedNel[String, A])

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. def mapSuccess(pf: (A) ⇒ Future[Result]): Future[Result]

    Permalink

    Maps a validation to a LiftResponse if the validation is successful.

    Maps a validation to a LiftResponse if the validation is successful. If the validation is not successful, this method provides a default response mechanism which returns a JSON HTTP 400 response, where the body is an object containing the error code and a list of messages corresponding to each individual error in the applicative functor.

    pf

    The partial function that maps the successful result to a LiftResponse.

    returns

    A future wrapping a Lift Response.

  8. def respond(pf: (A) ⇒ Result): Result

    Permalink

    Maps a validation to a LiftResponse if the validation is successful.

    Maps a validation to a LiftResponse if the validation is successful. If the validation is not successful, this method provides a default response mechanism which returns a JSON HTTP 400 response, where the body is an object containing the error code and a list of messages corresponding to each individual error in the applicative functor.

    pf

    The partial function that maps the successful result to a LiftResponse.

    returns

    A future wrapping a Lift Response.

  9. def toString(): String

    Permalink
    Definition Classes
    Any
  10. val vd: ValidatedNel[String, A]

    Permalink

Inherited from AnyVal

Inherited from Any

Ungrouped