Packages

trait RequestExtractor[-B] extends Logger

Adds the ability to extract values from a request.

Linear Supertypes
Logger, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RequestExtractor
  2. Logger
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Parts = Seq[RequestPart.Value]

    The request parts from which a value can be extracted.

Abstract Value Members

  1. abstract def extractString(name: String, parts: Option[Parts] = None)(implicit request: Request[B]): Option[String]

    Extracts a string from a request.

    Extracts a string from a request.

    name

    The name of the value to extract.

    parts

    Some request parts from which a value can be extracted or None to extract values from any part of the request.

    request

    The request from which the value should be extract.

    returns

    The extracted value as string.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def fromDefaultParts(name: String, parts: Option[Parts])(implicit request: Request[B]): Option[String]

    Extracts a value from the default parts of a request.

    Extracts a value from the default parts of a request.

    name

    The name of the value to extract.

    parts

    The request parts from which a value can be extracted.

    request

    The request from which the value should be extract.

    returns

    The extracted value.

    Attributes
    protected
  9. def fromFormUrlEncoded(name: String, body: Map[String, Seq[String]], parts: Option[Parts]): Option[String]

    Extracts a value from form url encoded body.

    Extracts a value from form url encoded body.

    name

    The name of the value to extract.

    body

    The body from which the value should be extract.

    parts

    The request parts from which a value can be extracted.

    returns

    The extracted value as string.

    Attributes
    protected
  10. def fromHeaders(name: String, parts: Option[Parts])(implicit request: Request[B]): Option[String]

    Extracts a value from headers.

    Extracts a value from headers.

    name

    The name of the value to extract.

    parts

    The request parts from which a value can be extracted.

    request

    The request from which the value should be extract.

    returns

    The extracted value as string.

    Attributes
    protected
  11. def fromJson(name: String, body: JsValue, parts: Option[Parts]): Option[String]

    Extracts a value from Json body.

    Extracts a value from Json body.

    name

    The name of the value to extract.

    body

    The body from which the value should be extract.

    parts

    The request parts from which a value can be extracted.

    returns

    The extracted value.

    Attributes
    protected
  12. def fromQueryString(name: String, parts: Option[Parts])(implicit request: Request[B]): Option[String]

    Extracts a value from query string.

    Extracts a value from query string.

    name

    The name of the value to extract.

    parts

    The request parts from which a value can be extracted.

    request

    The request from which the value should be extract.

    returns

    The extracted value as string.

    Attributes
    protected
  13. def fromXml(name: String, body: NodeSeq, parts: Option[Parts]): Option[String]

    Extracts a value from Xml body.

    Extracts a value from Xml body.

    name

    The name of the value to extract.

    body

    The body from which the value should be extract.

    parts

    The request parts from which a value can be extracted.

    returns

    The extracted value.

    Attributes
    protected
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val logger: api.Logger

    A named logger instance.

    A named logger instance.

    Definition Classes
    Logger
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Logger

Inherited from AnyRef

Inherited from Any

Ungrouped