Class

play.api.mvc

WrappedRequest

Related Doc: package mvc

Permalink

class WrappedRequest[+A] extends Request[A]

Wrap an existing request. Useful to extend a request.

Source
Http.scala
Linear Supertypes
Request[A], RequestHeader, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WrappedRequest
  2. Request
  3. RequestHeader
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WrappedRequest(request: Request[A])

    Permalink

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. lazy val acceptLanguages: Seq[Lang]

    Permalink

    The Request Langs extracted from the Accept-Language header and sorted by preference (preferred first).

    The Request Langs extracted from the Accept-Language header and sorted by preference (preferred first).

    Definition Classes
    RequestHeader
  5. lazy val acceptedTypes: Seq[MediaRange]

    Permalink

    returns

    The media types list of the request’s Accept header, sorted by preference (preferred first).

    Definition Classes
    RequestHeader
  6. def accepts(mimeType: String): Boolean

    Permalink

    Check if this request accepts a given media type.

    Check if this request accepts a given media type.

    returns

    true if mimeType matches the Accept header, otherwise false

    Definition Classes
    RequestHeader
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def body: A

    Permalink

    The body content.

    The body content.

    Definition Classes
    WrappedRequestRequest
  9. lazy val charset: Option[String]

    Permalink

    Returns the charset of the request for text-based body

    Returns the charset of the request for text-based body

    Definition Classes
    RequestHeader
  10. def clientCertificateChain: Option[Seq[X509Certificate]]

    Permalink

    The X509 certificate chain presented by a client during SSL requests.

    The X509 certificate chain presented by a client during SSL requests.

    Definition Classes
    WrappedRequestRequestHeader
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. lazy val contentType: Option[String]

    Permalink

    Returns the value of the Content-Type header (without the parameters (eg charset))

    Returns the value of the Content-Type header (without the parameters (eg charset))

    Definition Classes
    RequestHeader
  13. lazy val cookies: Cookies

    Permalink

    The HTTP cookies.

    The HTTP cookies.

    Definition Classes
    RequestHeader
  14. def copy(id: Long = this.id, tags: Map[String, String] = this.tags, uri: String = this.uri, path: String = this.path, method: String = this.method, version: String = this.version, queryString: Map[String, Seq[String]] = this.queryString, headers: Headers = this.headers, remoteAddress: ⇒ String = this.remoteAddress, secure: ⇒ Boolean = this.secure, clientCertificateChain: Option[Seq[X509Certificate]] = this.clientCertificateChain): RequestHeader

    Permalink

    Copy the request.

    Copy the request.

    Definition Classes
    RequestHeader
  15. lazy val domain: String

    Permalink

    The HTTP domain

    The HTTP domain

    Definition Classes
    RequestHeader
  16. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. lazy val flash: Flash

    Permalink

    Parses the Flash cookie and returns the Flash data.

    Parses the Flash cookie and returns the Flash data.

    Definition Classes
    RequestHeader
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def getQueryString(key: String): Option[String]

    Permalink

    Helper method to access a queryString parameter.

    Helper method to access a queryString parameter.

    Definition Classes
    RequestHeader
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. def headers: Headers

    Permalink

    The HTTP headers.

    The HTTP headers.

    Definition Classes
    WrappedRequestRequestHeader
  24. lazy val host: String

    Permalink

    The HTTP host (domain, optionally port)

    The HTTP host (domain, optionally port)

    Definition Classes
    RequestHeader
  25. def id: Long

    Permalink

    The request ID.

    The request ID.

    Definition Classes
    WrappedRequestRequestHeader
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def map[B](f: (A) ⇒ B): Request[B]

    Permalink

    Transform the request body.

    Transform the request body.

    Definition Classes
    Request
  28. lazy val mediaType: Option[MediaType]

    Permalink

    The media type of this request.

    The media type of this request. Same as contentType, except returns a fully parsed media type with parameters.

    Definition Classes
    RequestHeader
  29. def method: String

    Permalink

    The HTTP method.

    The HTTP method.

    Definition Classes
    WrappedRequestRequestHeader
  30. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  33. def path: String

    Permalink

    The URI path.

    The URI path.

    Definition Classes
    WrappedRequestRequestHeader
  34. def queryString: Map[String, Seq[String]]

    Permalink

    The parsed query string.

    The parsed query string.

    Definition Classes
    WrappedRequestRequestHeader
  35. lazy val rawQueryString: String

    Permalink

    Returns the raw query string.

    Returns the raw query string.

    Definition Classes
    RequestHeader
  36. def remoteAddress: String

    Permalink

    The client IP address.

    The client IP address.

    retrieves the last untrusted proxy from the Forwarded-Headers or the X-Forwarded-*-Headers.

    Definition Classes
    WrappedRequestRequestHeader
  37. def secure: Boolean

    Permalink

    Is the client using SSL?

    Is the client using SSL?

    Definition Classes
    WrappedRequestRequestHeader
  38. lazy val session: Session

    Permalink

    Parses the Session cookie and returns the Session data.

    Parses the Session cookie and returns the Session data.

    Definition Classes
    RequestHeader
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def tags: Map[String, String]

    Permalink

    The request Tags.

    The request Tags.

    Definition Classes
    WrappedRequestRequestHeader
  41. def toString(): String

    Permalink
    Definition Classes
    RequestHeader → AnyRef → Any
  42. def uri: String

    Permalink

    The complete request URI, containing both path and query string.

    The complete request URI, containing both path and query string. The URI is what was on the status line after the request method. E.g. in "GET /foo/bar?q=s HTTP/1.1" the URI should be /foo/bar?q=s. It could be absolute, some clients send absolute URLs, especially proxies.

    Definition Classes
    WrappedRequestRequestHeader
  43. def version: String

    Permalink

    The HTTP version.

    The HTTP version.

    Definition Classes
    WrappedRequestRequestHeader
  44. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. def withTag(tagName: String, tagValue: String): RequestHeader

    Permalink

    Convenience method for adding a single tag to this request

    Convenience method for adding a single tag to this request

    returns

    the tagged request

    Definition Classes
    RequestHeader

Inherited from Request[A]

Inherited from RequestHeader

Inherited from AnyRef

Inherited from Any

Ungrouped