class DefaultRequestFactory extends RequestFactory
The default RequestFactory used by a Play application. This
RequestFactory
adds the following typed attributes to requests:
- request id
- cookie
- session cookie
- flash cookie
- Source
- RequestFactory.scala
- Alphabetic
- By Inheritance
- DefaultRequestFactory
- RequestFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DefaultRequestFactory(config: HttpConfiguration)
- new DefaultRequestFactory(cookieHeaderEncoding: CookieHeaderEncoding, sessionBaker: SessionCookieBaker, flashBaker: FlashCookieBaker)
- Annotations
- @Inject()
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(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val cookieHeaderEncoding: CookieHeaderEncoding
- def copyRequest[A](r: Request[A]): Request[A]
Creates a
Request
based on the values of an existingRequest
.Creates a
Request
based on the values of an existingRequest
. The factory may modify the copied values to produce a modifiedRequest
.- Definition Classes
- RequestFactory
- def copyRequestHeader(rh: RequestHeader): RequestHeader
Creates a
RequestHeader
based on the values of an existingRequestHeader
.Creates a
RequestHeader
based on the values of an existingRequestHeader
. The factory may modify the copied values to produce a modifiedRequestHeader
.- Definition Classes
- RequestFactory
- def createRequest[A](connection: RemoteConnection, method: String, target: RequestTarget, version: String, headers: Headers, attrs: TypedMap, body: A): Request[A]
Create a
Request
with a body.Create a
Request
with a body. By default this just callscreateRequestHeader(...).withBody(body)
.- Definition Classes
- RequestFactory
- def createRequestHeader(connection: RemoteConnection, method: String, target: RequestTarget, version: String, headers: Headers, attrs: TypedMap): RequestHeader
Create a
RequestHeader
.Create a
RequestHeader
.- Definition Classes
- DefaultRequestFactory → RequestFactory
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val flashBaker: FlashCookieBaker
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- 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
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val sessionBaker: SessionCookieBaker
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)