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

public Interface Cookie

extends Cookie
Known Direct Implementers
io.netty.handler.codec.http.DefaultCookie
Annotations
@Deprecated
Imports
java.util.Set

Deprecated

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

An interface defining an HTTP cookie.

Field Summary

Inherited from io.netty.handler.codec.http.cookie.Cookie:
UNDEFINED_MAX_AGE

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The comment of this Cookie
comment
()

Deprecated Not part of RFC6265
Returns the comment of this Cookie.
public String

Returns:

The comment URL of this Cookie
commentUrl
()

Deprecated Not part of RFC6265
Returns the comment URL of this Cookie.
public String
getComment()

Deprecated Use comment() instead.
public String
getCommentUrl()

Deprecated Use commentUrl() instead.
public String
getDomain()

Deprecated Use domain() instead.
public long
getMaxAge()

Deprecated Use maxAge() instead.
public String
getName()

Deprecated Use name() instead.
public String
getPath()

Deprecated Use path() instead.
public Set<Integer>
getPorts()

Deprecated Use ports() instead.
public String
getValue()

Deprecated Use value() instead.
public int
getVersion()

Deprecated Use version() instead.
public boolean

Returns:

True if this Cookie is to be discarded, otherwise false
isDiscard
()

Deprecated Not part of RFC6265
Checks to see if this Cookie is to be discarded by the browser at the end of the current session.
public long

Returns:

The maximum age of this Cookie
maxAge
()

Redeclares io.netty.handler.codec.http.cookie.Cookie.maxAge.

Deprecated Not part of RFC6265
Returns the maximum age of this Cookie in seconds or Long#MIN_VALUE if unspecified
public Set<Integer>

Returns:

The Set of ports that this Cookie can use
ports
()

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

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

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

Deprecated Not part of RFC6265
Sets the discard flag of this Cookie.
public void
setMaxAge(long
The maximum age of this Cookie in seconds
maxAge
)

Redeclares io.netty.handler.codec.http.cookie.Cookie.setMaxAge.

Deprecated Not part of RFC6265
Sets the maximum age of this Cookie in seconds.
public void
setPorts(int...
The ports that this Cookie can be accessed on
ports
)

Deprecated Not part of RFC6265
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
)

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

Deprecated Not part of RFC6265
Sets the version of this Cookie.
public int

Returns:

The version of this Cookie
version
()

Deprecated Not part of RFC6265
Returns the version of this Cookie.
Inherited from io.netty.handler.codec.http.cookie.Cookie:
domainisHttpOnlyisSecurenamepathsetDomainsetHttpOnlysetPathsetSecuresetValuesetWrapvaluewrap

Method Detail

commentback to summary
public String comment()

Deprecated

Not part of RFC6265

Returns the comment of this Cookie.

Returns:String

The comment of this Cookie

Annotations
@Deprecated
commentUrlback to summary
public String commentUrl()

Deprecated

Not part of RFC6265

Returns the comment URL of this Cookie.

Returns:String

The comment URL of this Cookie

Annotations
@Deprecated
getCommentback to summary
public String getComment()

Deprecated

Use comment() instead.

Annotations
@Deprecated
getCommentUrlback to summary
public String getCommentUrl()

Deprecated

Use commentUrl() instead.

Annotations
@Deprecated
getDomainback to summary
public String getDomain()

Deprecated

Use domain() instead.

Annotations
@Deprecated
getMaxAgeback to summary
public long getMaxAge()

Deprecated

Use maxAge() instead.

Annotations
@Deprecated
getNameback to summary
public String getName()

Deprecated

Use name() instead.

Annotations
@Deprecated
getPathback to summary
public String getPath()

Deprecated

Use path() instead.

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

Deprecated

Use ports() instead.

Annotations
@Deprecated
getValueback to summary
public String getValue()

Deprecated

Use value() instead.

Annotations
@Deprecated
getVersionback to summary
public int getVersion()

Deprecated

Use version() instead.

Annotations
@Deprecated
isDiscardback to summary
public boolean isDiscard()

Deprecated

Not part of RFC6265

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
@Deprecated
maxAgeback to summary
public long maxAge()

Redeclares io.netty.handler.codec.http.cookie.Cookie.maxAge.

Deprecated

Not part of RFC6265

Returns the maximum age of this Cookie in seconds or Long#MIN_VALUE if unspecified

Returns:long

The maximum age of this Cookie

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

Deprecated

Not part of RFC6265

Returns the ports that this Cookie can be accessed on.

Returns:Set<Integer>

The Set of ports that this Cookie can use

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

Deprecated

Not part of RFC6265

Sets the comment of this Cookie.

Parameters
comment:String

The comment to use

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

Deprecated

Not part of RFC6265

Sets the comment URL of this Cookie.

Parameters
commentUrl:String

The comment URL to use

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

Deprecated

Not part of RFC6265

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
@Deprecated
setMaxAgeback to summary
public void setMaxAge(long maxAge)

Redeclares io.netty.handler.codec.http.cookie.Cookie.setMaxAge.

Deprecated

Not part of RFC6265

Sets the maximum age of this Cookie in seconds. If an age of 0 is specified, this Cookie will be automatically removed by browser because it will expire immediately. If Long#MIN_VALUE is specified, this Cookie will be removed when the browser is closed.

Parameters
maxAge:long

The maximum age of this Cookie in seconds

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

Deprecated

Not part of RFC6265

Sets the ports that this Cookie can be accessed on.

Parameters
ports:int[]

The ports that this Cookie can be accessed on

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

Deprecated

Not part of RFC6265

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
@Deprecated
setVersionback to summary
public void setVersion(int version)

Deprecated

Not part of RFC6265

Sets the version of this Cookie.

Parameters
version:int

The new version to use

Annotations
@Deprecated
versionback to summary
public int version()

Deprecated

Not part of RFC6265

Returns the version of this Cookie.

Returns:int

The version of this Cookie

Annotations
@Deprecated