final class HttpCookie extends javadsl.model.headers.HttpCookie with ToStringRenderable with Product with Serializable with Equals
for a full definition of the http cookie header fields, see http://tools.ietf.org/html/rfc6265
- Source
- HttpCookie.scala
- Alphabetic
- By Inheritance
- HttpCookie
- Serializable
- Product
- Equals
- ToStringRenderable
- Renderable
- HttpCookie
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new HttpCookie(name: String, value: String, expires: Option[DateTime] = None, maxAge: Option[Long] = None, domain: Option[String] = None, path: Option[String] = None, secure: Boolean = false, httpOnly: Boolean = false, extension: Option[String] = None)
- Annotations
- @deprecated
- Deprecated
(Since version 10.2.0) Please use HttpCookie(name, value).withXxx()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from HttpCookie toany2stringadd[HttpCookie] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (HttpCookie, B)
- Implicit
- This member is added by an implicit conversion from HttpCookie toArrowAssoc[HttpCookie] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEqual(that: Any): Boolean
- Definition Classes
- HttpCookie → Equals
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val domain: Option[String]
- def ensuring(cond: (HttpCookie) => Boolean, msg: => Any): HttpCookie
- Implicit
- This member is added by an implicit conversion from HttpCookie toEnsuring[HttpCookie] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (HttpCookie) => Boolean): HttpCookie
- Implicit
- This member is added by an implicit conversion from HttpCookie toEnsuring[HttpCookie] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): HttpCookie
- Implicit
- This member is added by an implicit conversion from HttpCookie toEnsuring[HttpCookie] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): HttpCookie
- Implicit
- This member is added by an implicit conversion from HttpCookie toEnsuring[HttpCookie] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: Any): Boolean
- Definition Classes
- HttpCookie → Equals → AnyRef → Any
- val expires: Option[DateTime]
- val extension: Option[String]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getDomain(): Optional[String]
Java API
Java API
- Definition Classes
- HttpCookie → HttpCookie
- def getExpires(): Optional[javadsl.model.DateTime]
Java API
Java API
- Definition Classes
- HttpCookie → HttpCookie
- def getExtension(): Optional[String]
Java API
Java API
- Definition Classes
- HttpCookie → HttpCookie
- def getMaxAge(): OptionalLong
Java API
Java API
- Definition Classes
- HttpCookie → HttpCookie
- def getPath(): Optional[String]
Java API
Java API
- Definition Classes
- HttpCookie → HttpCookie
- def getSameSite(): Optional[javadsl.model.headers.SameSite]
Java API
Java API
- Definition Classes
- HttpCookie → HttpCookie
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val httpOnly: Boolean
- Definition Classes
- HttpCookie → HttpCookie
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxAge: Option[Long]
- val name: String
- Definition Classes
- HttpCookie → HttpCookie
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def pair(): HttpCookiePair
Returns the name/value pair for this cookie, to be used in Cookie headers.
Returns the name/value pair for this cookie, to be used in Cookie headers.
- Definition Classes
- HttpCookie → HttpCookie
- val path: Option[String]
- def productArity: Int
- Definition Classes
- HttpCookie → Product
- def productElement(n: Int): Any
- Definition Classes
- HttpCookie → Product
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- Product
- def render[R <: Rendering](r: R): r.type
- Definition Classes
- HttpCookie → Renderable
- val sameSite: Option[SameSite]
- val secure: Boolean
- Definition Classes
- HttpCookie → HttpCookie
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- ToStringRenderable → AnyRef → Any
- val value: String
- Definition Classes
- HttpCookie → HttpCookie
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withDomain(domain: String): HttpCookie
Returns a copy of this HttpCookie instance with the given domain set.
Returns a copy of this HttpCookie instance with the given domain set.
- Definition Classes
- HttpCookie → HttpCookie
- def withExpires(dateTime: javadsl.model.DateTime): HttpCookie
Java API
Java API
- Definition Classes
- HttpCookie → HttpCookie
- def withExpires(dateTime: DateTime): HttpCookie
Scala API
- def withExtension(extension: String): HttpCookie
Returns a copy of this HttpCookie instance with the given extension set.
Returns a copy of this HttpCookie instance with the given extension set.
- Definition Classes
- HttpCookie → HttpCookie
- def withHttpOnly(httpOnly: Boolean): HttpCookie
Returns a copy of this HttpCookie instance with the given http-only flag set.
Returns a copy of this HttpCookie instance with the given http-only flag set.
- Definition Classes
- HttpCookie → HttpCookie
- def withMaxAge(maxAge: Long): HttpCookie
Returns a copy of this HttpCookie instance with the given max age set.
Returns a copy of this HttpCookie instance with the given max age set.
- Definition Classes
- HttpCookie → HttpCookie
- def withName(name: String): HttpCookie
- def withPath(path: String): HttpCookie
Returns a copy of this HttpCookie instance with the given path set.
Returns a copy of this HttpCookie instance with the given path set.
- Definition Classes
- HttpCookie → HttpCookie
- def withSameSite(sameSite: Optional[javadsl.model.headers.SameSite]): HttpCookie
Returns a copy of this HttpCookie instance with the given Optional
SameSite
set.Returns a copy of this HttpCookie instance with the given Optional
SameSite
set.- Definition Classes
- HttpCookie → HttpCookie
- def withSameSite(sameSite: javadsl.model.headers.SameSite): HttpCookie
Java API
Java API
- Definition Classes
- HttpCookie → HttpCookie
- def withSameSite(sameSite: Option[SameSite]): HttpCookie
- def withSameSite(sameSite: SameSite): HttpCookie
Scala API
- def withSecure(secure: Boolean): HttpCookie
Returns a copy of this HttpCookie instance with the given secure flag set.
Returns a copy of this HttpCookie instance with the given secure flag set.
- Definition Classes
- HttpCookie → HttpCookie
- def withValue(value: String): HttpCookie
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from HttpCookie toStringFormat[HttpCookie] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (HttpCookie, B)
- Implicit
- This member is added by an implicit conversion from HttpCookie toArrowAssoc[HttpCookie] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.