Packages

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
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpCookie
  2. Serializable
  3. Product
  4. Equals
  5. ToStringRenderable
  6. Renderable
  7. HttpCookie
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. 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
  4. 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()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def canEqual(that: Any): Boolean
    Definition Classes
    HttpCookie → Equals
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  9. val domain: Option[String]
  10. 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
  11. 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
  12. 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
  13. 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
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(obj: Any): Boolean
    Definition Classes
    HttpCookie → Equals → AnyRef → Any
  16. val expires: Option[DateTime]
  17. val extension: Option[String]
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  19. def getDomain(): Optional[String]

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  20. def getExpires(): Optional[javadsl.model.DateTime]

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  21. def getExtension(): Optional[String]

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  22. def getMaxAge(): OptionalLong

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  23. def getPath(): Optional[String]

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  24. def getSameSite(): Optional[javadsl.model.headers.SameSite]

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  26. val httpOnly: Boolean
    Definition Classes
    HttpCookieHttpCookie
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. val maxAge: Option[Long]
  29. val name: String
    Definition Classes
    HttpCookieHttpCookie
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  33. 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
    HttpCookieHttpCookie
  34. val path: Option[String]
  35. def productArity: Int
    Definition Classes
    HttpCookie → Product
  36. def productElement(n: Int): Any
    Definition Classes
    HttpCookie → Product
  37. def productElementName(n: Int): String
    Definition Classes
    Product
  38. def productElementNames: Iterator[String]
    Definition Classes
    Product
  39. def productIterator: Iterator[Any]
    Definition Classes
    Product
  40. def productPrefix: String
    Definition Classes
    Product
  41. def render[R <: Rendering](r: R): r.type
    Definition Classes
    HttpCookie → Renderable
  42. val sameSite: Option[SameSite]
  43. val secure: Boolean
    Definition Classes
    HttpCookieHttpCookie
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. def toString(): String
    Definition Classes
    ToStringRenderable → AnyRef → Any
  46. val value: String
    Definition Classes
    HttpCookieHttpCookie
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. 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
    HttpCookieHttpCookie
  51. def withExpires(dateTime: javadsl.model.DateTime): HttpCookie

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  52. def withExpires(dateTime: DateTime): HttpCookie

    Scala API

  53. 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
    HttpCookieHttpCookie
  54. 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
    HttpCookieHttpCookie
  55. 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
    HttpCookieHttpCookie
  56. def withName(name: String): HttpCookie
  57. 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
    HttpCookieHttpCookie
  58. 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
    HttpCookieHttpCookie
  59. def withSameSite(sameSite: javadsl.model.headers.SameSite): HttpCookie

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  60. def withSameSite(sameSite: Option[SameSite]): HttpCookie
  61. def withSameSite(sameSite: SameSite): HttpCookie

    Scala API

  62. 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
    HttpCookieHttpCookie
  63. def withValue(value: String): HttpCookie

Deprecated Value Members

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

    (Since version 9)

  2. 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 of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. 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.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ToStringRenderable

Inherited from Renderable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromHttpCookie to any2stringadd[HttpCookie]

Inherited by implicit conversion StringFormat fromHttpCookie to StringFormat[HttpCookie]

Inherited by implicit conversion Ensuring fromHttpCookie to Ensuring[HttpCookie]

Inherited by implicit conversion ArrowAssoc fromHttpCookie to ArrowAssoc[HttpCookie]

Ungrouped