Java Reference
In-Depth Information
public
void
setPath
(
String
path
)
public
String
getPath
()
public
void
setSecure
(
boolean
flag
)
public
boolean
getSecure
()
public
String
getName
()
public
void
setValue
(
String
value
)
public
String
getValue
()
public
int
getVersion
()
public
void
setVersion
(
int
v
)
public
static
boolean
domainMatches
(
String
domain
,
String
host
)
public
static
List
<
HttpCookie
>
parse
(
String
header
)
public
String
toString
()
public
boolean
equals
(
Object
obj
)
public
int
hashCode
()
public
Object
clone
()
}
Several of these attributes are not actually used any more. In particular
comment
,
comment
URL
,
discard
, and
version
are only used by the now obsolete Cookie 2 specification
that never caught on.