object Cookies extends CookieHeaderEncoding
- Alphabetic
- By Inheritance
- Cookies
- CookieHeaderEncoding
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val SetCookieHeaderSeparator: String
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
- val SetCookieHeaderSeparatorRegex: Regex
- Definition Classes
- CookieHeaderEncoding
- def apply(cookies: Seq[Cookie]): Cookies
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromCookieHeader(header: Option[String]): Cookies
- Definition Classes
- CookieHeaderEncoding
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @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(classOf[java.lang.InterruptedException])
- 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()
Deprecated Value Members
- def config: CookiesConfiguration
- Attributes
- protected
- Definition Classes
- Cookies → CookieHeaderEncoding
- Annotations
- @deprecated
- Deprecated
(Since version 2.6.0) Inject play.api.mvc.CookieHeaderEncoding instead
- def decodeCookieHeader(cookieHeader: String): Seq[Cookie]
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
- Cookies → CookieHeaderEncoding
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.1) Inject play.api.mvc.CookieHeaderEncoding instead
- def decodeSetCookieHeader(cookieHeader: String): Seq[Cookie]
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
- Cookies → CookieHeaderEncoding
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.1) Inject play.api.mvc.CookieHeaderEncoding instead
- def encodeCookieHeader(cookies: Seq[Cookie]): String
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
- Cookies → CookieHeaderEncoding
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.1) Inject play.api.mvc.CookieHeaderEncoding instead
- def encodeSetCookieHeader(cookies: Seq[Cookie]): String
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
- Cookies → CookieHeaderEncoding
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.1) Inject play.api.mvc.CookieHeaderEncoding instead
- def fromSetCookieHeader(header: Option[String]): Cookies
- Definition Classes
- Cookies → CookieHeaderEncoding
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.1) Inject play.api.mvc.CookieHeaderEncoding instead
- def mergeCookieHeader(cookieHeader: String, cookies: Seq[Cookie]): String
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
- Cookies → CookieHeaderEncoding
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.1) Inject play.api.mvc.CookieHeaderEncoding instead
- def mergeSetCookieHeader(cookieHeader: String, cookies: Seq[Cookie]): String
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
- Cookies → CookieHeaderEncoding
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.1) Inject play.api.mvc.CookieHeaderEncoding instead