final class Cookie extends AnyRef
- Self Type
- Cookie
- Note
domain
andpath
may be null.
- Alphabetic
- By Inheritance
- Cookie
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Cookie(name: String, value: String, domain: Option[String], path: Option[String], maxAge: Option[Duration], secure: Boolean, httpOnly: Boolean)
- new Cookie(name: String, value: String)
- 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def domain(domain: Option[String]): Cookie
Create a new Cookie with the same set fields, and domain
domain
. - val domain: String
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: Any): Boolean
Returns true if
obj
equalsthis
.Returns true if
obj
equalsthis
. Two cookies are considered equal if their names, paths, and domains are the same (ignoring case). This mimics theequals
method on Netty's DefaultCookie.- Definition Classes
- Cookie → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
From Netty 3's DefaultCookie
From Netty 3's DefaultCookie
- Definition Classes
- Cookie → AnyRef → Any
- def httpOnly(httpOnly: Boolean): Cookie
Create a new Cookie with the same set fields, and httpOnly
httpOnly
- val httpOnly: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def maxAge(maxAge: Option[Duration]): Cookie
Create a new Cookie with the same set fields, and maxAge
maxAge
- def maxAge: Duration
- val name: String
- 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()
- def path(path: Option[String]): Cookie
Create a new Cookie with the same set fields, and path
path
. - val path: String
- def sameSite(sameSite: SameSite): Cookie
Create a new Cookie with the same set fields, and sameSite
sameSite
- val sameSite: SameSite
- def secure(secure: Boolean): Cookie
Create a new Cookie with the same set fields, and secure
secure
- val secure: Boolean
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def value(value: String): Cookie
Create a new Cookie with the same set fields, and value
value
. - val value: String
- 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()