Interface Cookie
- All Superinterfaces:
Comparable<Cookie>
,Cookie
- All Known Implementing Classes:
DefaultCookie
Deprecated.
An interface defining an
HTTP cookie.
-
Method Summary
Modifier and TypeMethodDescriptioncomment()
Deprecated.Not part of RFC6265Deprecated.Not part of RFC6265Deprecated.Usecomment()
instead.Deprecated.UsecommentUrl()
instead.Deprecated.UseCookie.domain()
instead.int
Deprecated.UsemaxAge()
instead.getName()
Deprecated.UseCookie.name()
instead.getPath()
Deprecated.UseCookie.path()
instead.getPorts()
Deprecated.Useports()
instead.getValue()
Deprecated.UseCookie.value()
instead.int
Deprecated.Useversion()
instead.boolean
Deprecated.Not part of RFC6265int
maxAge()
Deprecated.Not part of RFC6265ports()
Deprecated.Not part of RFC6265void
setComment
(String comment) Deprecated.Not part of RFC6265void
setCommentUrl
(String commentUrl) Deprecated.Not part of RFC6265void
setDiscard
(boolean discard) Deprecated.Not part of RFC6265void
setMaxAge
(int maxAge) Deprecated.Not part of RFC6265void
setPorts
(int... ports) Deprecated.Not part of RFC6265void
Deprecated.Not part of RFC6265void
setVersion
(int version) Deprecated.Not part of RFC6265int
version()
Deprecated.Not part of RFC6265Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getName
Deprecated.UseCookie.name()
instead. -
getValue
Deprecated.UseCookie.value()
instead. -
getDomain
Deprecated.UseCookie.domain()
instead. -
getPath
Deprecated.UseCookie.path()
instead. -
getComment
Deprecated.Usecomment()
instead. -
comment
Deprecated.Not part of RFC6265Returns the comment of thisCookie
.- Returns:
- The comment of this
Cookie
-
setComment
Deprecated.Not part of RFC6265Sets the comment of thisCookie
.- Parameters:
comment
- The comment to use
-
getMaxAge
Deprecated.UsemaxAge()
instead. -
maxAge
Deprecated.Not part of RFC6265Returns the maximum age of thisCookie
in seconds orInteger.MIN_VALUE
if unspecified -
setMaxAge
Deprecated.Not part of RFC6265Sets the maximum age of thisCookie
in seconds. If an age of0
is specified, thisCookie
will be automatically removed by browser because it will expire immediately. IfInteger.MIN_VALUE
is specified, thisCookie
will be removed when the browser is closed. -
getVersion
Deprecated.Useversion()
instead. -
version
Deprecated.Not part of RFC6265Returns the version of thisCookie
.- Returns:
- The version of this
Cookie
-
setVersion
Deprecated.Not part of RFC6265Sets the version of thisCookie
.- Parameters:
version
- The new version to use
-
getCommentUrl
Deprecated.UsecommentUrl()
instead. -
commentUrl
Deprecated.Not part of RFC6265Returns the comment URL of thisCookie
.- Returns:
- The comment URL of this
Cookie
-
setCommentUrl
Deprecated.Not part of RFC6265Sets the comment URL of thisCookie
.- Parameters:
commentUrl
- The comment URL to use
-
isDiscard
Deprecated.Not part of RFC6265Checks to see if thisCookie
is to be discarded by the browser at the end of the current session.- Returns:
- True if this
Cookie
is to be discarded, otherwise false
-
setDiscard
Deprecated.Not part of RFC6265Sets the discard flag of thisCookie
. If set to true, thisCookie
will be discarded by the browser at the end of the current session- Parameters:
discard
- True if theCookie
is to be discarded
-
getPorts
Deprecated.Useports()
instead. -
ports
Deprecated.Not part of RFC6265Returns the ports that thisCookie
can be accessed on. -
setPorts
Deprecated.Not part of RFC6265Sets the ports that thisCookie
can be accessed on.- Parameters:
ports
- The ports that thisCookie
can be accessed on
-
setPorts
Deprecated.Not part of RFC6265Sets the ports that thisCookie
can be accessed on.
-
Cookie
instead.