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.

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() @HotSpotIntrinsicCandidate() @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. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int

    From Netty 3's DefaultCookie

    From Netty 3's DefaultCookie

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

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

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

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

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

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

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

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

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

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

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

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

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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped