Package io.netty.handler.codec.http
Class DefaultCookie
java.lang.Object
io.netty.handler.codec.http.cookie.DefaultCookie
io.netty.handler.codec.http.DefaultCookie
- All Implemented Interfaces:
Cookie
,Cookie
,Comparable<Cookie>
Deprecated.
The default
Cookie
implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Deprecated.private String
Deprecated.private boolean
Deprecated.Deprecated.Deprecated.private int
Deprecated.Fields inherited from interface io.netty.handler.codec.http.cookie.Cookie
UNDEFINED_MAX_AGE
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCookie
(String name, String value) Deprecated.Creates a new cookie with the specified name and value. -
Method Summary
Modifier and TypeMethodDescriptioncomment()
Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.long
Deprecated.getName()
Deprecated.getPath()
Deprecated.getPorts()
Deprecated.getValue()
Deprecated.int
Deprecated.boolean
Deprecated.ports()
Deprecated.void
setComment
(String comment) Deprecated.void
setCommentUrl
(String commentUrl) Deprecated.void
setDiscard
(boolean discard) Deprecated.void
setPorts
(int... ports) Deprecated.void
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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
comment
Deprecated. -
commentUrl
Deprecated. -
discard
private boolean discardDeprecated. -
ports
Deprecated. -
unmodifiablePorts
Deprecated. -
version
private int versionDeprecated.
-
-
Constructor Details
-
DefaultCookie
Deprecated.Creates a new cookie with the specified name and value.
-
-
Method Details
-
getName
Deprecated. -
getValue
Deprecated. -
getDomain
Deprecated. -
getPath
Deprecated. -
getComment
Deprecated.- Specified by:
getComment
in interfaceCookie
-
comment
Deprecated.Description copied from interface:Cookie
Returns the comment of thisCookie
. -
setComment
Deprecated.Description copied from interface:Cookie
Sets the comment of thisCookie
.- Specified by:
setComment
in interfaceCookie
- Parameters:
comment
- The comment to use
-
getCommentUrl
Deprecated.- Specified by:
getCommentUrl
in interfaceCookie
-
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.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.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.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. -
ports
Deprecated.Description copied from interface:Cookie
Returns the ports that thisCookie
can be accessed on. -
setPorts
Deprecated.Description copied from interface:Cookie
Sets the ports that thisCookie
can be accessed on. -
setPorts
Deprecated.Description copied from interface:Cookie
Sets the ports that thisCookie
can be accessed on. -
getMaxAge
Deprecated. -
getVersion
Deprecated.- Specified by:
getVersion
in interfaceCookie
-
version
Deprecated.Description copied from interface:Cookie
Returns the version of thisCookie
. -
setVersion
Deprecated.Description copied from interface:Cookie
Sets the version of thisCookie
.- Specified by:
setVersion
in interfaceCookie
- Parameters:
version
- The new version to use
-
DefaultCookie
instead.