Interface Cookie
- All Known Implementing Classes:
DefaultCookie
Deprecated.
An interface defining an
HTTP cookie.
-
Field Summary
Fields inherited from interface Cookie
UNDEFINED_MAX_AGE -
Method Summary
Modifier and TypeMethodDescriptionjava.lang.Stringcomment()Deprecated.Not part of RFC6265java.lang.StringDeprecated.Not part of RFC6265java.lang.StringDeprecated.Usecomment()instead.java.lang.StringDeprecated.UsecommentUrl()instead.java.lang.StringDeprecated.UseCookie.domain()instead.longDeprecated.UsemaxAge()instead.java.lang.StringgetName()Deprecated.UseCookie.name()instead.java.lang.StringgetPath()Deprecated.UseCookie.path()instead.java.util.Set<java.lang.Integer> getPorts()Deprecated.Useports()instead.java.lang.StringgetValue()Deprecated.UseCookie.value()instead.intDeprecated.Useversion()instead.booleanDeprecated.Not part of RFC6265longmaxAge()Deprecated.Not part of RFC6265java.util.Set<java.lang.Integer> ports()Deprecated.Not part of RFC6265voidsetComment(java.lang.String comment) Deprecated.Not part of RFC6265voidsetCommentUrl(java.lang.String commentUrl) Deprecated.Not part of RFC6265voidsetDiscard(boolean discard) Deprecated.Not part of RFC6265voidsetMaxAge(long maxAge) Deprecated.Not part of RFC6265voidsetPorts(int... ports) Deprecated.Not part of RFC6265voidsetPorts(java.lang.Iterable<java.lang.Integer> ports) Deprecated.Not part of RFC6265voidsetVersion(int version) Deprecated.Not part of RFC6265intversion()Deprecated.Not part of RFC6265Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getName
@Deprecated java.lang.String getName()Deprecated.UseCookie.name()instead. -
getValue
@Deprecated java.lang.String getValue()Deprecated.UseCookie.value()instead. -
getDomain
@Deprecated java.lang.String getDomain()Deprecated.UseCookie.domain()instead. -
getPath
@Deprecated java.lang.String getPath()Deprecated.UseCookie.path()instead. -
getComment
@Deprecated java.lang.String getComment()Deprecated.Usecomment()instead. -
comment
-
setComment
@Deprecated void setComment(java.lang.String comment) Deprecated.Not part of RFC6265Sets the comment of thisCookie.- Parameters:
comment- The comment to use
-
getMaxAge
@Deprecated long getMaxAge()Deprecated.UsemaxAge()instead. -
maxAge
-
setMaxAge
@Deprecated void setMaxAge(long maxAge) Deprecated.Not part of RFC6265 -
getVersion
@Deprecated int getVersion()Deprecated.Useversion()instead. -
version
-
setVersion
@Deprecated void setVersion(int version) Deprecated.Not part of RFC6265Sets the version of thisCookie.- Parameters:
version- The new version to use
-
getCommentUrl
@Deprecated java.lang.String getCommentUrl()Deprecated.UsecommentUrl()instead. -
commentUrl
-
setCommentUrl
@Deprecated void setCommentUrl(java.lang.String commentUrl) Deprecated.Not part of RFC6265Sets the comment URL of thisCookie.- Parameters:
commentUrl- The comment URL to use
-
isDiscard
-
setDiscard
-
getPorts
@Deprecated java.util.Set<java.lang.Integer> getPorts()Deprecated.Useports()instead. -
ports
-
setPorts
-
setPorts
-
Cookieinstead.