Trait

play.api.test

ResultExtractors

Related Doc: package test

Permalink

trait ResultExtractors extends AnyRef

Self Type
ResultExtractors with HeaderNames with Status
Source
Helpers.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResultExtractors
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 charset(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Option[String]

    Permalink

    Extracts the Charset of this Result value.

  6. def charset(of: Future[Result])(implicit timeout: Timeout): Option[String]

    Permalink

    Extracts the Charset of this Result value.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def contentAsBytes(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): ByteString

    Permalink

    Extracts the content as bytes.

  9. def contentAsBytes(of: Future[Result])(implicit timeout: Timeout, mat: Materializer = NoMaterializer): ByteString

    Permalink

    Extracts the content as bytes.

  10. def contentAsBytes(of: Content)(implicit timeout: Timeout): Array[Byte]

    Permalink

    Extracts the content as bytes.

  11. def contentAsJson(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): JsValue

    Permalink

    Extracts the content as Json.

  12. def contentAsJson(of: Future[Result])(implicit timeout: Timeout, mat: Materializer = NoMaterializer): JsValue

    Permalink

    Extracts the content as Json.

  13. def contentAsJson(of: Content)(implicit timeout: Timeout): JsValue

    Permalink

    Extracts the content as Json.

  14. def contentAsString(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): String

    Permalink

    Extracts the content as String.

  15. def contentAsString(of: Future[Result])(implicit timeout: Timeout, mat: Materializer = NoMaterializer): String

    Permalink

    Extracts the content as String.

  16. def contentAsString(of: Content)(implicit timeout: Timeout): String

    Permalink

    Extracts the content as String.

  17. def contentType(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Option[String]

    Permalink

    Extracts the Content-Type of this Result value.

  18. def contentType(of: Future[Result])(implicit timeout: Timeout): Option[String]

    Permalink

    Extracts the Content-Type of this Result value.

  19. def contentType(of: Content)(implicit timeout: Timeout): String

    Permalink

    Extracts the Content-Type of this Content value.

  20. def cookies(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Cookies

    Permalink

    Extracts the Cookies set by this Result value.

  21. def cookies(of: Future[Result])(implicit timeout: Timeout): Cookies

    Permalink

    Gets the Cookies associated with this Result value.

    Gets the Cookies associated with this Result value. Note that this only extracts the "new" cookies added to this result (e.g. through withCookies), not including the Session or Flash. The final set of cookies may be different because the Play server automatically adds those cookies and merges the headers.

  22. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def flash(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Flash

    Permalink

    Extracts the Flash values set by this Result value.

  26. def flash(of: Future[Result])(implicit timeout: Timeout): Flash

    Permalink

    Extracts the Flash values set by this Result value.

  27. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def header(header: String, of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Option[String]

    Permalink

    Extracts an Header value of this Result value.

  30. def header(header: String, of: Future[Result])(implicit timeout: Timeout): Option[String]

    Permalink

    Extracts an Header value of this Result value.

  31. def headers(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Map[String, String]

    Permalink

    Extracts all Headers of this Result value.

  32. def headers(of: Future[Result])(implicit timeout: Timeout): Map[String, String]

    Permalink

    Extracts all Headers of this Result value.

  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  37. def redirectLocation(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Option[String]

    Permalink

    Extracts the Location header of this Result value if this Result is a Redirect.

  38. def redirectLocation(of: Future[Result])(implicit timeout: Timeout): Option[String]

    Permalink

    Extracts the Location header of this Result value if this Result is a Redirect.

  39. def session(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Session

    Permalink

    Extracts the Session set by this Result value.

  40. def session(of: Future[Result])(implicit timeout: Timeout): Session

    Permalink

    Extracts the Session values set by this Result value.

  41. def status(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Int

    Permalink

    Extracts the Status code of this Result value.

  42. def status(of: Future[Result])(implicit timeout: Timeout): Int

    Permalink

    Extracts the Status code of this Result value.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  45. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped