Object/Trait

play.api.mvc

Cookies

Related Docs: trait Cookies | package mvc

Permalink

object Cookies extends CookieHeaderEncoding

Helper utilities to encode Cookies.

Source
Cookie.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cookies
  2. CookieHeaderEncoding
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. val SetCookieHeaderSeparator: String

    Permalink

    Play doesn't support multiple values per header, so has to compress cookies into one header.

    Play doesn't support multiple values per header, so has to compress cookies into one header. The problem is, Set-Cookie doesn't support being compressed into one header, the reason being that the separator character for header values, comma, is used in the dates in the Expires attribute of a cookie value. So we synthesise our own separator, that we use here, and before we send the cookie back to the client.

    Definition Classes
    CookieHeaderEncoding
  5. val SetCookieHeaderSeparatorRegex: Regex

    Permalink
    Definition Classes
    CookieHeaderEncoding
  6. def apply(cookies: Seq[Cookie]): Cookies

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def decodeCookieHeader(cookieHeader: String): Seq[Cookie]

    Permalink

    Decodes a Cookie header value as a proper cookie set.

    Decodes a Cookie header value as a proper cookie set.

    cookieHeader

    the Cookie header value

    returns

    decoded cookies

    Definition Classes
    CookieHeaderEncoding
  10. def decodeSetCookieHeader(cookieHeader: String): Seq[Cookie]

    Permalink

    Decodes a Set-Cookie header value as a proper cookie set.

    Decodes a Set-Cookie header value as a proper cookie set.

    cookieHeader

    the Set-Cookie header value

    returns

    decoded cookies

    Definition Classes
    CookieHeaderEncoding
  11. def encodeCookieHeader(cookies: Seq[Cookie]): String

    Permalink

    Encodes cookies as a Set-Cookie HTTP header.

    Encodes cookies as a Set-Cookie HTTP header.

    cookies

    the Cookies to encode

    returns

    a valid Set-Cookie header value

    Definition Classes
    CookieHeaderEncoding
  12. def encodeSetCookieHeader(cookies: Seq[Cookie]): String

    Permalink

    Encodes cookies as a Set-Cookie HTTP header.

    Encodes cookies as a Set-Cookie HTTP header.

    cookies

    the Cookies to encode

    returns

    a valid Set-Cookie header value

    Definition Classes
    CookieHeaderEncoding
  13. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def fromCookieHeader(header: Option[String]): Cookies

    Permalink
    Definition Classes
    CookieHeaderEncoding
  17. def fromSetCookieHeader(header: Option[String]): Cookies

    Permalink
    Definition Classes
    CookieHeaderEncoding
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def mergeCookieHeader(cookieHeader: String, cookies: Seq[Cookie]): String

    Permalink

    Merges an existing Cookie header with new cookie values

    Merges an existing Cookie header with new cookie values

    cookieHeader

    the existing Cookie header value

    cookies

    the new cookies to encode

    returns

    a valid Cookie header value

    Definition Classes
    CookieHeaderEncoding
  22. def mergeSetCookieHeader(cookieHeader: String, cookies: Seq[Cookie]): String

    Permalink

    Merges an existing Set-Cookie header with new cookie values

    Merges an existing Set-Cookie header with new cookie values

    cookieHeader

    the existing Set-Cookie header value

    cookies

    the new cookies to encode

    returns

    a valid Set-Cookie header value

    Definition Classes
    CookieHeaderEncoding
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def config: CookiesConfiguration

    Permalink
    Attributes
    protected
    Definition Classes
    CookiesCookieHeaderEncoding
    Annotations
    @deprecated
    Deprecated

    (Since version 2.6.0) Inject play.api.mvc.CookieHeaderEncoding instead

Inherited from CookieHeaderEncoding

Inherited from AnyRef

Inherited from Any

Ungrouped