trait RequestExtractor[-B] extends Logger
Adds the ability to extract values from a request.
- Alphabetic
- By Inheritance
- RequestExtractor
- Logger
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
Parts = Seq[RequestPart.Value]
The request parts from which a value can be extracted.
Abstract Value Members
-
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
-
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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
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
-
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
-
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
-
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
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
logger: play.api.Logger
A named logger instance.
A named logger instance.
- Definition Classes
- Logger
-
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()
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()