Packages

final class Cookie extends AnyRef

Self Type
Cookie
Note

domain and path may be null.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cookie
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Cookie(name: String, value: String, domain: Option[String], path: Option[String], maxAge: Option[Duration], secure: Boolean, httpOnly: Boolean)
  2. new Cookie(name: String, value: String)
  3. new Cookie(name: String, value: String, domain: Option[String] = None, path: Option[String] = None, maxAge: Option[Duration] = None, secure: Boolean = false, httpOnly: Boolean = false, sameSite: SameSite = SameSite.Unset)

    Create a cookie.

  4. new Cookie(underlying: org.jboss.netty.handler.codec.http.Cookie)
    Annotations
    @deprecated
    Deprecated

    Use Bijections.from to create a Cookie from a Netty Cookie

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. def domain(domain: Option[String]): Cookie

    Create a new Cookie with the same set fields, and domain domain.

  7. val domain: String
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(obj: Any): Boolean

    Returns true if obj equals this.

    Returns true if obj equals this. Two cookies are considered equal if their names, paths, and domains are the same (ignoring case). This mimics the equals method on Netty's DefaultCookie.

    Definition Classes
    Cookie → AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int

    From Netty 3's DefaultCookie

    From Netty 3's DefaultCookie

    Definition Classes
    Cookie → AnyRef → Any
  13. def httpOnly(httpOnly: Boolean): Cookie

    Create a new Cookie with the same set fields, and httpOnly httpOnly

  14. val httpOnly: Boolean
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def maxAge(maxAge: Option[Duration]): Cookie

    Create a new Cookie with the same set fields, and maxAge maxAge

  17. def maxAge: Duration
  18. val name: String
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def path(path: Option[String]): Cookie

    Create a new Cookie with the same set fields, and path path.

  23. val path: String
  24. def sameSite(sameSite: SameSite): Cookie

    Create a new Cookie with the same set fields, and sameSite sameSite

  25. val sameSite: SameSite
  26. def secure(secure: Boolean): Cookie

    Create a new Cookie with the same set fields, and secure secure

  27. val secure: Boolean
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def value(value: String): Cookie

    Create a new Cookie with the same set fields, and value value.

  31. val value: String
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped