Package io.netty.handler.codec.http
Class DefaultCookie
- java.lang.Object
-
- io.netty.handler.codec.http.cookie.DefaultCookie
-
- io.netty.handler.codec.http.DefaultCookie
-
@Deprecated public class DefaultCookie extends DefaultCookie implements Cookie
Deprecated.UseDefaultCookie
instead.The defaultCookie
implementation.
-
-
Field Summary
-
Fields inherited from interface io.netty.handler.codec.http.cookie.Cookie
UNDEFINED_MAX_AGE
-
-
Constructor Summary
Constructors Constructor Description DefaultCookie(java.lang.String name, java.lang.String value)
Deprecated.Creates a new cookie with the specified name and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
comment()
Deprecated.java.lang.String
commentUrl()
Deprecated.java.lang.String
getComment()
Deprecated.java.lang.String
getCommentUrl()
Deprecated.java.lang.String
getDomain()
Deprecated.long
getMaxAge()
Deprecated.java.lang.String
getName()
Deprecated.java.lang.String
getPath()
Deprecated.java.util.Set<java.lang.Integer>
getPorts()
Deprecated.java.lang.String
getValue()
Deprecated.int
getVersion()
Deprecated.boolean
isDiscard()
Deprecated.java.util.Set<java.lang.Integer>
ports()
Deprecated.void
setComment(java.lang.String comment)
Deprecated.void
setCommentUrl(java.lang.String commentUrl)
Deprecated.void
setDiscard(boolean discard)
Deprecated.void
setPorts(int... ports)
Deprecated.void
setPorts(java.lang.Iterable<java.lang.Integer> ports)
Deprecated.void
setVersion(int version)
Deprecated.int
version()
Deprecated.-
Methods inherited from class io.netty.handler.codec.http.cookie.DefaultCookie
compareTo, domain, equals, hashCode, isHttpOnly, isPartitioned, isSecure, maxAge, name, path, sameSite, setDomain, setHttpOnly, setMaxAge, setPartitioned, setPath, setSameSite, setSecure, setValue, setWrap, toString, validateValue, value, wrap
-
-
-
-
Method Detail
-
getName
@Deprecated public java.lang.String getName()
Deprecated.
-
getValue
@Deprecated public java.lang.String getValue()
Deprecated.
-
getDomain
@Deprecated public java.lang.String getDomain()
Deprecated.
-
getPath
@Deprecated public java.lang.String getPath()
Deprecated.
-
getComment
@Deprecated public java.lang.String getComment()
Deprecated.- Specified by:
getComment
in interfaceCookie
-
comment
@Deprecated public java.lang.String comment()
Deprecated.Description copied from interface:Cookie
Returns the comment of thisCookie
.
-
setComment
@Deprecated public void setComment(java.lang.String comment)
Deprecated.Description copied from interface:Cookie
Sets the comment of thisCookie
.- Specified by:
setComment
in interfaceCookie
- Parameters:
comment
- The comment to use
-
getCommentUrl
@Deprecated public java.lang.String getCommentUrl()
Deprecated.- Specified by:
getCommentUrl
in interfaceCookie
-
commentUrl
@Deprecated public java.lang.String commentUrl()
Deprecated.Description copied from interface:Cookie
Returns the comment URL of thisCookie
.- Specified by:
commentUrl
in interfaceCookie
- Returns:
- The comment URL of this
Cookie
-
setCommentUrl
@Deprecated public void setCommentUrl(java.lang.String commentUrl)
Deprecated.Description copied from interface:Cookie
Sets the comment URL of thisCookie
.- Specified by:
setCommentUrl
in interfaceCookie
- Parameters:
commentUrl
- The comment URL to use
-
isDiscard
@Deprecated public boolean isDiscard()
Deprecated.Description copied from interface:Cookie
Checks to see if thisCookie
is to be discarded by the browser at the end of the current session.
-
setDiscard
@Deprecated public void setDiscard(boolean discard)
Deprecated.Description copied from interface:Cookie
Sets the discard flag of thisCookie
. If set to true, thisCookie
will be discarded by the browser at the end of the current session- Specified by:
setDiscard
in interfaceCookie
- Parameters:
discard
- True if theCookie
is to be discarded
-
getPorts
@Deprecated public java.util.Set<java.lang.Integer> getPorts()
Deprecated.
-
ports
@Deprecated public java.util.Set<java.lang.Integer> ports()
Deprecated.Description copied from interface:Cookie
Returns the ports that thisCookie
can be accessed on.
-
setPorts
@Deprecated public void setPorts(int... ports)
Deprecated.Description copied from interface:Cookie
Sets the ports that thisCookie
can be accessed on.
-
setPorts
@Deprecated public void setPorts(java.lang.Iterable<java.lang.Integer> ports)
Deprecated.Description copied from interface:Cookie
Sets the ports that thisCookie
can be accessed on.
-
getMaxAge
@Deprecated public long getMaxAge()
Deprecated.
-
getVersion
@Deprecated public int getVersion()
Deprecated.- Specified by:
getVersion
in interfaceCookie
-
version
@Deprecated public int version()
Deprecated.Description copied from interface:Cookie
Returns the version of thisCookie
.
-
setVersion
@Deprecated public void setVersion(int version)
Deprecated.Description copied from interface:Cookie
Sets the version of thisCookie
.- Specified by:
setVersion
in interfaceCookie
- Parameters:
version
- The new version to use
-
-