Top Description Fields Constructors Methods
io.netty.handler.codec.http

public Class DefaultCookie

extends DefaultCookie
implements Cookie
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.http.Cookie, io.netty.handler.codec.http.cookie.Cookie, java.lang.Comparable
Annotations
@Deprecated
Imports
io.netty.util.internal.ObjectUtil, java.util.Collections, .Set, .TreeSet

Deprecated

Use io.netty.handler.codec.http.cookie.DefaultCookie instead.

The default Cookie implementation.

Field Summary

Modifier and TypeField and Description
private String
private String
private boolean
private Set<Integer>
private Set<Integer>
private int

Constructor Summary

AccessConstructor and Description
public
DefaultCookie(String name, String value)

Creates a new cookie with the specified name and value.

Method Summary

Modifier and TypeMethod and Description
public String
comment()

Implements io.netty.handler.codec.http.Cookie.comment.

Deprecated
Returns the comment of this Cookie.
public String
commentUrl()

Implements io.netty.handler.codec.http.Cookie.commentUrl.

Deprecated
Returns the comment URL of this Cookie.
public String
public String
public String
public long
public String
public String
public Set<Integer>
public String
public int
public boolean
isDiscard()

Implements io.netty.handler.codec.http.Cookie.isDiscard.

Deprecated
Checks to see if this Cookie is to be discarded by the browser at the end of the current session.
public Set<Integer>
ports()

Implements io.netty.handler.codec.http.Cookie.ports.

Deprecated
Returns the ports that this Cookie can be accessed on.
public void
setComment(String
The comment to use
comment
)

Implements io.netty.handler.codec.http.Cookie.setComment.

Deprecated
Sets the comment of this Cookie.
public void
setCommentUrl(String
The comment URL to use
commentUrl
)

Implements io.netty.handler.codec.http.Cookie.setCommentUrl.

Deprecated
Sets the comment URL of this Cookie.
public void
setDiscard(boolean
True if the Cookie is to be discarded
discard
)

Implements io.netty.handler.codec.http.Cookie.setDiscard.

Deprecated
Sets the discard flag of this Cookie.
public void
setPorts(int...
The ports that this Cookie can be accessed on
ports
)

Implements io.netty.handler.codec.http.Cookie.setPorts.

Deprecated
Sets the ports that this Cookie can be accessed on.
public void
setPorts(Iterable<Integer>
The Iterable collection of ports that this Cookie can be accessed on.
ports
)

Implements io.netty.handler.codec.http.Cookie.setPorts.

Deprecated
Sets the ports that this Cookie can be accessed on.
public void
setVersion(int
The new version to use
version
)

Implements io.netty.handler.codec.http.Cookie.setVersion.

Deprecated
Sets the version of this Cookie.
public int
version()

Implements io.netty.handler.codec.http.Cookie.version.

Deprecated
Returns the version of this Cookie.
Inherited from io.netty.handler.codec.http.cookie.DefaultCookie:
compareTodomainequalshashCodeisHttpOnlyisPartitionedisSecuremaxAgenamepathsameSitesetDomainsetHttpOnlysetMaxAgesetPartitionedsetPathsetSameSitesetSecuresetValuesetWraptoStringvalidateValuevaluewrap

Field Detail

commentback to summary
private String comment
commentUrlback to summary
private String commentUrl
discardback to summary
private boolean discard
portsback to summary
private Set<Integer> ports
unmodifiablePortsback to summary
private Set<Integer> unmodifiablePorts
versionback to summary
private int version

Constructor Detail

DefaultCookieback to summary
public DefaultCookie(String name, String value)

Creates a new cookie with the specified name and value.

Method Detail

commentback to summary
public String comment()

Implements io.netty.handler.codec.http.Cookie.comment.

Doc from io.netty.handler.codec.http.Cookie.comment.

Deprecated

Returns the comment of this Cookie.

Returns:String

The comment of this Cookie

Annotations
@Override
@Deprecated
commentUrlback to summary
public String commentUrl()

Implements io.netty.handler.codec.http.Cookie.commentUrl.

Doc from io.netty.handler.codec.http.Cookie.commentUrl.

Deprecated

Returns the comment URL of this Cookie.

Returns:String

The comment URL of this Cookie

Annotations
@Override
@Deprecated
getCommentback to summary
public String getComment()

Implements io.netty.handler.codec.http.Cookie.getComment.

Deprecated

Annotations
@Override
@Deprecated
getCommentUrlback to summary
public String getCommentUrl()

Implements io.netty.handler.codec.http.Cookie.getCommentUrl.

Deprecated

Annotations
@Override
@Deprecated
getDomainback to summary
public String getDomain()

Implements io.netty.handler.codec.http.Cookie.getDomain.

Deprecated

Annotations
@Override
@Deprecated
getMaxAgeback to summary
public long getMaxAge()

Implements io.netty.handler.codec.http.Cookie.getMaxAge.

Deprecated

Annotations
@Override
@Deprecated
getNameback to summary
public String getName()

Implements io.netty.handler.codec.http.Cookie.getName.

Deprecated

Annotations
@Override
@Deprecated
getPathback to summary
public String getPath()

Implements io.netty.handler.codec.http.Cookie.getPath.

Deprecated

Annotations
@Override
@Deprecated
getPortsback to summary
public Set<Integer> getPorts()

Implements io.netty.handler.codec.http.Cookie.getPorts.

Deprecated

Annotations
@Override
@Deprecated
getValueback to summary
public String getValue()

Implements io.netty.handler.codec.http.Cookie.getValue.

Deprecated

Annotations
@Override
@Deprecated
getVersionback to summary
public int getVersion()

Implements io.netty.handler.codec.http.Cookie.getVersion.

Deprecated

Annotations
@Override
@Deprecated
isDiscardback to summary
public boolean isDiscard()

Implements io.netty.handler.codec.http.Cookie.isDiscard.

Doc from io.netty.handler.codec.http.Cookie.isDiscard.

Deprecated

Checks to see if this Cookie is to be discarded by the browser at the end of the current session.

Returns:boolean

True if this Cookie is to be discarded, otherwise false

Annotations
@Override
@Deprecated
portsback to summary
public Set<Integer> ports()

Implements io.netty.handler.codec.http.Cookie.ports.

Doc from io.netty.handler.codec.http.Cookie.ports.

Deprecated

Returns the ports that this Cookie can be accessed on.

Returns:Set<Integer>

The Set of ports that this Cookie can use

Annotations
@Override
@Deprecated
setCommentback to summary
public void setComment(String comment)

Implements io.netty.handler.codec.http.Cookie.setComment.

Doc from io.netty.handler.codec.http.Cookie.setComment.

Deprecated

Sets the comment of this Cookie.

Parameters
comment:String

The comment to use

Annotations
@Override
@Deprecated
setCommentUrlback to summary
public void setCommentUrl(String commentUrl)

Implements io.netty.handler.codec.http.Cookie.setCommentUrl.

Doc from io.netty.handler.codec.http.Cookie.setCommentUrl.

Deprecated

Sets the comment URL of this Cookie.

Parameters
commentUrl:String

The comment URL to use

Annotations
@Override
@Deprecated
setDiscardback to summary
public void setDiscard(boolean discard)

Implements io.netty.handler.codec.http.Cookie.setDiscard.

Doc from io.netty.handler.codec.http.Cookie.setDiscard.

Deprecated

Sets the discard flag of this Cookie. If set to true, this Cookie will be discarded by the browser at the end of the current session

Parameters
discard:boolean

True if the Cookie is to be discarded

Annotations
@Override
@Deprecated
setPortsback to summary
public void setPorts(int... ports)

Implements io.netty.handler.codec.http.Cookie.setPorts.

Doc from io.netty.handler.codec.http.Cookie.setPorts.

Deprecated

Sets the ports that this Cookie can be accessed on.

Parameters
ports:int[]

The ports that this Cookie can be accessed on

Annotations
@Override
@Deprecated
setPortsback to summary
public void setPorts(Iterable<Integer> ports)

Implements io.netty.handler.codec.http.Cookie.setPorts.

Doc from io.netty.handler.codec.http.Cookie.setPorts.

Deprecated

Sets the ports that this Cookie can be accessed on.

Parameters
ports:Iterable<Integer>

The Iterable collection of ports that this Cookie can be accessed on.

Annotations
@Override
@Deprecated
setVersionback to summary
public void setVersion(int version)

Implements io.netty.handler.codec.http.Cookie.setVersion.

Doc from io.netty.handler.codec.http.Cookie.setVersion.

Deprecated

Sets the version of this Cookie.

Parameters
version:int

The new version to use

Annotations
@Override
@Deprecated
versionback to summary
public int version()

Implements io.netty.handler.codec.http.Cookie.version.

Doc from io.netty.handler.codec.http.Cookie.version.

Deprecated

Returns the version of this Cookie.

Returns:int

The version of this Cookie

Annotations
@Override
@Deprecated