trait ResultExtractors extends AnyRef
- Self Type
- ResultExtractors with HeaderNames with Status
- Source
- Helpers.scala
- Alphabetic
- By Inheritance
- ResultExtractors
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 charset(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Option[String]
Extracts the Charset of this Result value.
- def charset(of: Future[Result])(implicit timeout: Timeout): Option[String]
Extracts the Charset of this Result value.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contentAsBytes(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): ByteString
Extracts the content as bytes.
- def contentAsBytes(of: Future[Result])(implicit timeout: Timeout, mat: Materializer = NoMaterializer): ByteString
Extracts the content as bytes.
- def contentAsBytes(of: Content)(implicit timeout: Timeout): Array[Byte]
Extracts the content as bytes.
- def contentAsJson(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): JsValue
Extracts the content as Json.
- def contentAsJson(of: Future[Result])(implicit timeout: Timeout, mat: Materializer = NoMaterializer): JsValue
Extracts the content as Json.
- def contentAsJson(of: Content)(implicit timeout: Timeout): JsValue
Extracts the content as Json.
- def contentAsString(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): String
Extracts the content as String.
- def contentAsString(of: Future[Result])(implicit timeout: Timeout, mat: Materializer = NoMaterializer): String
Extracts the content as String.
- def contentAsString(of: Content)(implicit timeout: Timeout): String
Extracts the content as String.
- def contentType(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Option[String]
Extracts the Content-Type of this Result value.
- def contentType(of: Future[Result])(implicit timeout: Timeout): Option[String]
Extracts the Content-Type of this Result value.
- def contentType(of: Content)(implicit timeout: Timeout): String
Extracts the Content-Type of this Content value.
- def cookies(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Cookies
Extracts the Cookies set by this Result value.
- def cookies(of: Future[Result])(implicit timeout: Timeout): Cookies
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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flash(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Flash
Extracts the Flash values set by this Result value.
- def flash(of: Future[Result])(implicit timeout: Timeout): Flash
Extracts the Flash values set by this Result value.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def header(header: String, of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Option[String]
Extracts an Header value of this Result value.
- def header(header: String, of: Future[Result])(implicit timeout: Timeout): Option[String]
Extracts an Header value of this Result value.
- def headers(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Map[String, String]
Extracts all Headers of this Result value.
- def headers(of: Future[Result])(implicit timeout: Timeout): Map[String, String]
Extracts all Headers of this Result value.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def redirectLocation(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Option[String]
Extracts the Location header of this Result value if this Result is a Redirect.
- def redirectLocation(of: Future[Result])(implicit timeout: Timeout): Option[String]
Extracts the Location header of this Result value if this Result is a Redirect.
- def session(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Session
Extracts the Session set by this Result value.
- def session(of: Future[Result])(implicit timeout: Timeout): Session
Extracts the Session values set by this Result value.
- def status(of: Accumulator[ByteString, Result])(implicit timeout: Timeout, mat: Materializer): Int
Extracts the Status code of this Result value.
- def status(of: Future[Result])(implicit timeout: Timeout): Int
Extracts the Status code of this Result value.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()