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.
(Derived from io.netty.handler.codec.http.Cookie)
- Alphabetic
- By Inheritance
- Cookie
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Cookie(_asJava: AnyRef)
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 asJava: AnyRef
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getDomain(): Option[String]
- returns
the domain for the cookie
-
def
getName(): String
- returns
the name of this cookie
-
def
getPath(): Option[String]
- returns
the path for this cookie
-
def
getValue(): String
- returns
the value of this cookie
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isChanged(): Boolean
Has the cookie been changed? Changed cookies will be saved out in the response and sent to the browser.
Has the cookie been changed? Changed cookies will be saved out in the response and sent to the browser. * @return true if changed
-
def
isFromUserAgent(): Boolean
Has this Cookie been sent from the User Agent (the browser)? or was created during the executing on the request.
Has this Cookie been sent from the User Agent (the browser)? or was created during the executing on the request. * @return true if the cookie comes from the User Agent.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
setChanged(changed: Boolean): Unit
Set the cookie as being changed.
Set the cookie as being changed. Changed will be true for a cookie just created, false by default if just read from the request * @param changed true if changed
-
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
-
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.
-
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 -
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
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )