public static interface Cookies.Cookie
Modifier and Type | Method and Description |
---|---|
Optional<String> |
comment()
Comment of the cookie.
|
Optional<String> |
commentUrl()
Comment URL of the cookie.
|
String |
domain()
Domain of the cookie.
|
boolean |
httpOnly()
HTTPOnly flag of the cookie.
|
long |
maxAge()
Maximum age of the cookie in seconds.
|
String |
name()
Name of the cookie.
|
String |
path()
Path of the cookie.
|
boolean |
secure()
Secure flag of the cookie.
|
String |
value()
Value of the cookie.
|
int |
version()
Version of the cookie.
|
int version()
String name()
String value()
String path()
String domain()
long maxAge()
A positive value indicates that the cookie will expire after that many seconds have passed. Note that the value is the maximum age when the cookie will expire, not the cookie's current age.
A negative value means that the cookie is not stored persistently and will be deleted when the Web browser exits.
A zero value causes the cookie to be deleted.
boolean secure()
boolean httpOnly()