Cookie
instead.@Deprecated public interface Cookie extends Cookie
UNDEFINED_MAX_AGE
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
comment()
已过时。
Not part of RFC6265
|
java.lang.String |
commentUrl()
已过时。
Not part of RFC6265
|
java.lang.String |
getComment()
已过时。
Use
comment() instead. |
java.lang.String |
getCommentUrl()
已过时。
Use
commentUrl() instead. |
java.lang.String |
getDomain()
已过时。
Use
Cookie.domain() instead. |
long |
getMaxAge()
已过时。
Use
maxAge() instead. |
java.lang.String |
getName()
已过时。
Use
Cookie.name() instead. |
java.lang.String |
getPath()
已过时。
Use
Cookie.path() instead. |
java.util.Set<java.lang.Integer> |
getPorts()
已过时。
Use
ports() instead. |
java.lang.String |
getValue()
已过时。
Use
Cookie.value() instead. |
int |
getVersion()
已过时。
Use
version() instead. |
boolean |
isDiscard()
已过时。
Not part of RFC6265
|
long |
maxAge()
已过时。
Not part of RFC6265
|
java.util.Set<java.lang.Integer> |
ports()
已过时。
Not part of RFC6265
|
void |
setComment(java.lang.String comment)
已过时。
Not part of RFC6265
|
void |
setCommentUrl(java.lang.String commentUrl)
已过时。
Not part of RFC6265
|
void |
setDiscard(boolean discard)
已过时。
Not part of RFC6265
|
void |
setMaxAge(long maxAge)
已过时。
Not part of RFC6265
|
void |
setPorts(int... ports)
已过时。
Not part of RFC6265
|
void |
setPorts(java.lang.Iterable<java.lang.Integer> ports)
已过时。
Not part of RFC6265
|
void |
setVersion(int version)
已过时。
Not part of RFC6265
|
int |
version()
已过时。
Not part of RFC6265
|
@Deprecated java.lang.String getName()
Cookie.name()
instead.@Deprecated java.lang.String getValue()
Cookie.value()
instead.@Deprecated java.lang.String getDomain()
Cookie.domain()
instead.@Deprecated java.lang.String getPath()
Cookie.path()
instead.@Deprecated java.lang.String getComment()
comment()
instead.@Deprecated java.lang.String comment()
Cookie
.Cookie
@Deprecated void setComment(java.lang.String comment)
Cookie
.comment
- The comment to use@Deprecated long getMaxAge()
maxAge()
instead.@Deprecated long maxAge()
Cookie
in seconds or Long.MIN_VALUE
if unspecified@Deprecated void setMaxAge(long maxAge)
@Deprecated int getVersion()
version()
instead.@Deprecated int version()
Cookie
.Cookie
@Deprecated void setVersion(int version)
Cookie
.version
- The new version to use@Deprecated java.lang.String getCommentUrl()
commentUrl()
instead.@Deprecated java.lang.String commentUrl()
Cookie
.Cookie
@Deprecated void setCommentUrl(java.lang.String commentUrl)
Cookie
.commentUrl
- The comment URL to use@Deprecated boolean isDiscard()
Cookie
is to be discarded by the browser
at the end of the current session.Cookie
is to be discarded, otherwise false@Deprecated void setDiscard(boolean discard)
Cookie
.
If set to true, this Cookie
will be discarded by the browser
at the end of the current sessiondiscard
- True if the Cookie
is to be discarded@Deprecated java.util.Set<java.lang.Integer> getPorts()
ports()
instead.@Deprecated java.util.Set<java.lang.Integer> ports()
Cookie
can be accessed on.Set
of ports that this Cookie
can use@Deprecated void setPorts(int... ports)
Cookie
can be accessed on.ports
- The ports that this Cookie
can be accessed on