Package io.netty.handler.codec.http
Interface Cookie
-
- All Known Implementing Classes:
DefaultCookie
@Deprecated public interface Cookie extends Cookie
Deprecated.UseCookie
instead.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 java.lang.String
comment()
Deprecated.Not part of RFC6265java.lang.String
commentUrl()
Deprecated.Not part of RFC6265java.lang.String
getComment()
Deprecated.Usecomment()
instead.java.lang.String
getCommentUrl()
Deprecated.UsecommentUrl()
instead.java.lang.String
getDomain()
Deprecated.UseCookie.domain()
instead.long
getMaxAge()
Deprecated.UsemaxAge()
instead.java.lang.String
getName()
Deprecated.UseCookie.name()
instead.java.lang.String
getPath()
Deprecated.UseCookie.path()
instead.java.util.Set<java.lang.Integer>
getPorts()
Deprecated.Useports()
instead.java.lang.String
getValue()
Deprecated.UseCookie.value()
instead.int
getVersion()
Deprecated.Useversion()
instead.boolean
isDiscard()
Deprecated.Not part of RFC6265long
maxAge()
Deprecated.Not part of RFC6265java.util.Set<java.lang.Integer>
ports()
Deprecated.Not part of RFC6265void
setComment(java.lang.String comment)
Deprecated.Not part of RFC6265void
setCommentUrl(java.lang.String commentUrl)
Deprecated.Not part of RFC6265void
setDiscard(boolean discard)
Deprecated.Not part of RFC6265void
setMaxAge(long maxAge)
Deprecated.Not part of RFC6265void
setPorts(int... ports)
Deprecated.Not part of RFC6265void
setPorts(java.lang.Iterable<java.lang.Integer> ports)
Deprecated.Not part of RFC6265void
setVersion(int version)
Deprecated.Not part of RFC6265int
version()
Deprecated.Not part of RFC6265
-
-
-
Method Detail
-
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
@Deprecated java.lang.String comment()
Deprecated.Not part of RFC6265Returns the comment of thisCookie
.- Returns:
- The comment of this
Cookie
-
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
@Deprecated long maxAge()
Deprecated.Not part of RFC6265Returns the maximum age of thisCookie
in seconds orLong.MIN_VALUE
if unspecified
-
setMaxAge
@Deprecated void setMaxAge(long maxAge)
Deprecated.Not part of RFC6265
-
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 java.lang.String getCommentUrl()
Deprecated.UsecommentUrl()
instead.
-
commentUrl
@Deprecated java.lang.String commentUrl()
Deprecated.Not part of RFC6265Returns the comment URL of thisCookie
.- Returns:
- The comment URL of this
Cookie
-
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
@Deprecated boolean 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 void setDiscard(boolean discard)
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 java.util.Set<java.lang.Integer> getPorts()
Deprecated.Useports()
instead.
-
ports
@Deprecated java.util.Set<java.lang.Integer> ports()
Deprecated.Not part of RFC6265Returns the ports that thisCookie
can be accessed on.- Returns:
- The
Set
of ports that thisCookie
can use
-
setPorts
@Deprecated void setPorts(int... ports)
Deprecated.Not part of RFC6265Sets the ports that thisCookie
can be accessed on.- Parameters:
ports
- The ports that thisCookie
can be accessed on
-
-