Class DefaultCookie
- java.lang.Object
-
- org.jboss.netty.handler.codec.http.cookie.DefaultCookie
-
- org.jboss.netty.handler.codec.http.DefaultCookie
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
comment
Deprecated.private java.lang.String
commentUrl
Deprecated.private boolean
discard
Deprecated.private java.util.Set<java.lang.Integer>
ports
Deprecated.private java.util.Set<java.lang.Integer>
unmodifiablePorts
Deprecated.private int
version
Deprecated.
-
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.int
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 org.jboss.netty.handler.codec.http.cookie.DefaultCookie
compareTo, domain, equals, hashCode, isHttpOnly, isSecure, maxAge, name, path, setDomain, setHttpOnly, setMaxAge, setPath, setSecure, setValue, setWrap, toString, validateValue, value, wrap
-
-
-
-
Field Detail
-
comment
private java.lang.String comment
Deprecated.
-
commentUrl
private java.lang.String commentUrl
Deprecated.
-
discard
private boolean discard
Deprecated.
-
ports
private java.util.Set<java.lang.Integer> ports
Deprecated.
-
unmodifiablePorts
private java.util.Set<java.lang.Integer> unmodifiablePorts
Deprecated.
-
version
private int version
Deprecated.
-
-
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 int 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
-
-