Trait

play.api.mvc

CookieBaker

Related Doc: package mvc

Permalink

trait CookieBaker[T <: AnyRef] extends AnyRef

Trait that should be extended by the Cookie helpers.

Source
Http.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CookieBaker
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def COOKIE_NAME: String

    Permalink

    The cookie name.

  2. abstract def cookieSigner: CookieSigner

    Permalink

    The cookie signer.

  3. abstract def deserialize(data: Map[String, String]): T

    Permalink

    Builds the cookie object from the given data map.

    Builds the cookie object from the given data map.

    data

    the data map to build the cookie object

    returns

    a new cookie object

    Attributes
    protected
  4. abstract def emptyCookie: T

    Permalink

    Default cookie, returned in case of error or if missing in the HTTP headers.

  5. abstract def serialize(cookie: T): Map[String, String]

    Permalink

    Converts the given cookie object into a data map.

    Converts the given cookie object into a data map.

    cookie

    the cookie object to serialize into a map

    returns

    a new Map storing the key-value pairs for the given cookie

    Attributes
    protected

Concrete 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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def decode(data: String): Map[String, String]

    Permalink

    Decodes from an encoded String.

  7. def decodeCookieToMap(cookie: Option[Cookie]): Map[String, String]

    Permalink

    Decodes the data from a Cookie.

  8. def decodeFromCookie(cookie: Option[Cookie]): T

    Permalink

    Decodes the data from a Cookie.

  9. def discard: DiscardingCookie

    Permalink
  10. def domain: Option[String]

    Permalink

    The cookie domain.

    The cookie domain. Defaults to None.

  11. def encode(data: Map[String, String]): String

    Permalink

    Encodes the data as a String.

  12. def encodeAsCookie(data: T): Cookie

    Permalink

    Encodes the data as a Cookie.

  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. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def httpOnly: Boolean

    Permalink

    true if the Cookie should have the httpOnly flag, disabling access from Javascript.

    true if the Cookie should have the httpOnly flag, disabling access from Javascript. Defaults to true.

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isSigned: Boolean

    Permalink

    true if the Cookie is signed.

    true if the Cookie is signed. Defaults to false.

  21. def maxAge: Option[Int]

    Permalink

    The cookie expiration date in seconds, None for a transient cookie

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

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def path: String

    Permalink

    The cookie path.

  26. def secure: Boolean

    Permalink

    true if the Cookie should have the secure flag, restricting usage to https.

    true if the Cookie should have the secure flag, restricting usage to https. Defaults to false.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped