Package io.netty.handler.codec.http
Interface Cookie
-
- All Superinterfaces:
Comparable<Cookie>,Cookie
- All Known Implementing Classes:
DefaultCookie
@Deprecated public interface Cookie extends Cookie
Deprecated.UseCookieinstead.An interface defining an HTTP cookie.
-
-
Field Summary
-
Fields inherited from interface io.netty.handler.codec.http.cookie.Cookie
UNDEFINED_MAX_AGE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Stringcomment()Deprecated.Not part of RFC6265StringcommentUrl()Deprecated.Not part of RFC6265StringgetComment()Deprecated.Usecomment()instead.StringgetCommentUrl()Deprecated.UsecommentUrl()instead.StringgetDomain()Deprecated.UseCookie.domain()instead.longgetMaxAge()Deprecated.UsemaxAge()instead.StringgetName()Deprecated.UseCookie.name()instead.StringgetPath()Deprecated.UseCookie.path()instead.Set<Integer>getPorts()Deprecated.Useports()instead.StringgetValue()Deprecated.UseCookie.value()instead.intgetVersion()Deprecated.Useversion()instead.booleanisDiscard()Deprecated.Not part of RFC6265longmaxAge()Deprecated.Not part of RFC6265Set<Integer>ports()Deprecated.Not part of RFC6265voidsetComment(String comment)Deprecated.Not part of RFC6265voidsetCommentUrl(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(Iterable<Integer> ports)Deprecated.Not part of RFC6265voidsetVersion(int version)Deprecated.Not part of RFC6265intversion()Deprecated.Not part of RFC6265-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getName
@Deprecated String getName()
Deprecated.UseCookie.name()instead.
-
getValue
@Deprecated String getValue()
Deprecated.UseCookie.value()instead.
-
getDomain
@Deprecated String getDomain()
Deprecated.UseCookie.domain()instead.
-
getPath
@Deprecated String getPath()
Deprecated.UseCookie.path()instead.
-
getComment
@Deprecated String getComment()
Deprecated.Usecomment()instead.
-
comment
@Deprecated String comment()
Deprecated.Not part of RFC6265Returns the comment of thisCookie.- Returns:
- The comment of this
Cookie
-
setComment
@Deprecated void setComment(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
@Deprecated long maxAge()
Deprecated.Not part of RFC6265Returns the maximum age of thisCookiein seconds orLong.MIN_VALUEif unspecified
-
setMaxAge
@Deprecated void setMaxAge(long maxAge)
Deprecated.Not part of RFC6265Sets the maximum age of thisCookiein seconds. If an age of0is specified, thisCookiewill be automatically removed by browser because it will expire immediately. IfLong.MIN_VALUEis specified, thisCookiewill be removed when the browser is closed.
-
getVersion
@Deprecated int getVersion()
Deprecated.Useversion()instead.
-
version
@Deprecated int version()
Deprecated.Not part of RFC6265Returns the version of thisCookie.- Returns:
- The version of this
Cookie
-
setVersion
@Deprecated void setVersion(int version)
Deprecated.Not part of RFC6265Sets the version of thisCookie.- Parameters:
version- The new version to use
-
getCommentUrl
@Deprecated String getCommentUrl()
Deprecated.UsecommentUrl()instead.
-
commentUrl
@Deprecated String commentUrl()
Deprecated.Not part of RFC6265Returns the comment URL of thisCookie.- Returns:
- The comment URL of this
Cookie
-
setCommentUrl
@Deprecated void setCommentUrl(String commentUrl)
Deprecated.Not part of RFC6265Sets the comment URL of thisCookie.- Parameters:
commentUrl- The comment URL to use
-
isDiscard
@Deprecated boolean isDiscard()
Deprecated.Not part of RFC6265Checks to see if thisCookieis to be discarded by the browser at the end of the current session.- Returns:
- True if this
Cookieis to be discarded, otherwise false
-
setDiscard
@Deprecated void setDiscard(boolean discard)
Deprecated.Not part of RFC6265Sets the discard flag of thisCookie. If set to true, thisCookiewill be discarded by the browser at the end of the current session- Parameters:
discard- True if theCookieis to be discarded
-
getPorts
@Deprecated Set<Integer> getPorts()
Deprecated.Useports()instead.
-
ports
@Deprecated Set<Integer> ports()
Deprecated.Not part of RFC6265Returns the ports that thisCookiecan be accessed on.
-
setPorts
@Deprecated void setPorts(int... ports)
Deprecated.Not part of RFC6265Sets the ports that thisCookiecan be accessed on.- Parameters:
ports- The ports that thisCookiecan be accessed on
-
-