vertx-lang-scala-docs_2.12 3.9.1 API < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package io
  Definition Classes
    root
-  package vertx
  Definition Classes
    io
-  package scala
  Definition Classes
    vertx
-  package core
  Definition Classes
    scala
-  package http
  Definition Classes
    core
- Cookie
- GoAway
- Http2Settings
- HttpClient
- HttpClientOptions
- HttpClientRequest
- HttpClientResponse
- HttpConnection
- HttpFrame
- HttpServer
- HttpServerFileUpload
- HttpServerOptions
- HttpServerRequest
- HttpServerResponse
- RequestOptions
- ServerWebSocket
- StreamPriority
- WebSocket
- WebSocketBase
- WebSocketConnectOptions
- WebSocketFrame

c

io.vertx.scala.core.http

# Cookie 

###
Companion object Cookie

#### class Cookie extends AnyRef

Represents an HTTP Cookie.

All cookies must have a name and a value and can optionally have other fields set such as path, domain, etc.

Linear Supertypes
AnyRef, Any
 
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(_asJava: AnyRef)

### 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 asJava: AnyRef
6.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @native() @throws( ... )
7.  def encode(): String

   Encode the cookie to a string.

   Encode the cookie to a string. This is what is used in the Set-Cookie header * @return the encoded cookie

8.  final def eq(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef
9.  def equals(arg0: Any): Boolean
   Definition Classes
     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 getDomain(): Option[String]

    returns

      the domain for the cookie

13.  def getName(): String

    returns

      the name of this cookie

14.  def getPath(): Option[String]

    returns

      the path for this cookie

15.  def getValue(): String

    returns

      the value of this cookie

16.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
17.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
18.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
19.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
20.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
21.  def setDomain(domain: Option[String]): Cookie

    Sets the domain of this cookie * @param domain The domain to use

    Sets the domain of this cookie * @param domain The domain to use

    returns

      a reference to this, so the API can be used fluently

22.  def setHttpOnly(httpOnly: Boolean): Cookie

    Determines if this cookie is HTTP only.

    Determines if this cookie is HTTP only. If set to true, this cookie cannot be accessed by a client side script. However, this works only if the browser supports it. For for information, please look here. * @param httpOnly True if the cookie is HTTP only, otherwise false.

23.  def setMaxAge(maxAge: Long): Cookie

    Sets the maximum age of this cookie in seconds.

    Sets the maximum age of this cookie in seconds. If an age of `0` is specified, this cookie will be automatically removed by browser because it will expire immediately. If MIN_VALUE is specified, this cookie will be removed when the browser is closed. If you don't set this the cookie will be a session cookie and be removed when the browser is closed. * @param maxAge The maximum age of this cookie in seconds

24.  def setPath(path: Option[String]): Cookie

    Sets the path of this cookie.

    Sets the path of this cookie. * @param path The path to use for this cookie

    returns

      a reference to this, so the API can be used fluently

25.  def setSameSite(policy: CookieSameSite): Cookie

    Sets the same site of this cookie.

    Sets the same site of this cookie. * @param policy The policy should be one of CookieSameSite.

    returns

      a reference to this, so the API can be used fluently

26.  def setSecure(secure: Boolean): Cookie

    Sets the security getStatus of this cookie * @param secure True if this cookie is to be secure, otherwise false

    Sets the security getStatus of this cookie * @param secure True if this cookie is to be secure, otherwise false

    returns

      a reference to this, so the API can be used fluently

27.  def setValue(value: String): Cookie

    Sets the value of this cookie * @param value The value to set

    Sets the value of this cookie * @param value The value to set

    returns

      a reference to this, so the API can be used fluently

28.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
29.  def toString(): String
    Definition Classes
      AnyRef → Any
30.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
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( ... )

### Inherited from AnyRef

### Inherited from Any

### Ungrouped