play.api.mvc

Cookies

Related Docs: trait Cookies | package mvc

object Cookies

Helper utilities to encode Cookies.

Source
Http.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Cookies
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. 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.

  5. val SetCookieHeaderSeparatorRegex: Regex

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. 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

  9. 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

  10. 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

  11. 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

  12. final def eq(arg0: AnyRef): Boolean

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

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

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

  16. def fromSetCookieHeader(header: Option[String]): Cookies

  17. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  20. 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

  21. 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

  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def apply(header: Option[String]): Cookies

    Annotations
    @deprecated
    Deprecated

    (Since version 2.4.0) Use fromSetCookieHeader or fromCookieHeader instead

  2. def decode(cookieHeader: String): Seq[Cookie]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.4.0) Use decodeSetCookieHeader or decodeCookieHeader instead

  3. def encode(cookies: Seq[Cookie]): String

    Annotations
    @deprecated
    Deprecated

    (Since version 2.4.0) Use encodeSetCookieHeader or encodeCookieHeader instead

  4. def merge(cookieHeader: String, cookies: Seq[Cookie]): String

    Annotations
    @deprecated
    Deprecated

    (Since version 2.4.0) Use mergeSetCookieHeader or mergeCookieHeader instead

Inherited from AnyRef

Inherited from Any

Ungrouped