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)
package |
Default |
---|
__construct()
encode() : string
string
the encoded cookie
getDomain() : string
string
the domain for the cookie
getName() : string
string
the name of this cookie
getPath() : string
string
the path for this cookie
getValue() : string
string
the value of this cookie
isChanged() : boolean
boolean
true if changed
isFromUserAgent() : boolean
boolean
true if the cookie comes from the User Agent.
setChanged( $arg0) : void
boolean
setDomain( $arg0) : $this
string
$this
a reference to this, so the API can be used fluently
setHttpOnly( $arg0) : $this
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.
boolean
$this
setMaxAge( $arg0) : $this
If an age of 0
is specified, this cookie will be
automatically removed by browser because it will expire immediately.
If \java.lang.Long 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.
integer
$this
setPath( $arg0) : $this
string
$this
a reference to this, so the API can be used fluently
setSecure( $arg0) : $this
boolean
$this
a reference to this, so the API can be used fluently
setValue( $arg0) : $this
string
$this
a reference to this, so the API can be used fluently