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.UseDefaultCookieinstead.The defaultCookieimplementation.
-
-
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.Stringcomment()Deprecated.java.lang.StringcommentUrl()Deprecated.java.lang.StringgetComment()Deprecated.java.lang.StringgetCommentUrl()Deprecated.java.lang.StringgetDomain()Deprecated.longgetMaxAge()Deprecated.java.lang.StringgetName()Deprecated.java.lang.StringgetPath()Deprecated.java.util.Set<java.lang.Integer>getPorts()Deprecated.java.lang.StringgetValue()Deprecated.intgetVersion()Deprecated.booleanisDiscard()Deprecated.java.util.Set<java.lang.Integer>ports()Deprecated.voidsetComment(java.lang.String comment)Deprecated.voidsetCommentUrl(java.lang.String commentUrl)Deprecated.voidsetDiscard(boolean discard)Deprecated.voidsetPorts(int... ports)Deprecated.voidsetPorts(java.lang.Iterable<java.lang.Integer> ports)Deprecated.voidsetVersion(int version)Deprecated.intversion()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:
getCommentin interfaceCookie
-
comment
@Deprecated public java.lang.String comment()
Deprecated.Description copied from interface:CookieReturns the comment of thisCookie.
-
setComment
@Deprecated public void setComment(java.lang.String comment)
Deprecated.Description copied from interface:CookieSets the comment of thisCookie.- Specified by:
setCommentin interfaceCookie- Parameters:
comment- The comment to use
-
getCommentUrl
@Deprecated public java.lang.String getCommentUrl()
Deprecated.- Specified by:
getCommentUrlin interfaceCookie
-
commentUrl
@Deprecated public java.lang.String commentUrl()
Deprecated.Description copied from interface:CookieReturns the comment URL of thisCookie.- Specified by:
commentUrlin interfaceCookie- Returns:
- The comment URL of this
Cookie
-
setCommentUrl
@Deprecated public void setCommentUrl(java.lang.String commentUrl)
Deprecated.Description copied from interface:CookieSets the comment URL of thisCookie.- Specified by:
setCommentUrlin interfaceCookie- Parameters:
commentUrl- The comment URL to use
-
isDiscard
@Deprecated public boolean isDiscard()
Deprecated.Description copied from interface:CookieChecks to see if thisCookieis 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:CookieSets the discard flag of thisCookie. If set to true, thisCookiewill be discarded by the browser at the end of the current session- Specified by:
setDiscardin interfaceCookie- Parameters:
discard- True if theCookieis 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:CookieReturns the ports that thisCookiecan be accessed on.
-
setPorts
@Deprecated public void setPorts(int... ports)
Deprecated.Description copied from interface:CookieSets the ports that thisCookiecan be accessed on.
-
setPorts
@Deprecated public void setPorts(java.lang.Iterable<java.lang.Integer> ports)
Deprecated.Description copied from interface:CookieSets the ports that thisCookiecan be accessed on.
-
getMaxAge
@Deprecated public long getMaxAge()
Deprecated.
-
getVersion
@Deprecated public int getVersion()
Deprecated.- Specified by:
getVersionin interfaceCookie
-
version
@Deprecated public int version()
Deprecated.Description copied from interface:CookieReturns the version of thisCookie.
-
setVersion
@Deprecated public void setVersion(int version)
Deprecated.Description copied from interface:CookieSets the version of thisCookie.- Specified by:
setVersionin interfaceCookie- Parameters:
version- The new version to use
-
-