Cookie.Definition, Cookie.Signature
Constructor and Description |
---|
CookieImpl(Cookie.Definition cookie) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
comment() |
Optional<String> |
domain() |
String |
encode() |
boolean |
httpOnly() |
int |
maxAge()
Gets the maximum age of this cookie (in seconds).
|
String |
name() |
Optional<String> |
path() |
boolean |
secure()
Returns
true if the browser is sending cookies only over a secure protocol, or
false if the browser can send cookies using any protocol. |
String |
toString() |
Optional<String> |
value() |
public CookieImpl(Cookie.Definition cookie)
public int maxAge()
Cookie
By default, -1
is returned, which indicates that the cookie will persist until
browser shutdown.
public boolean secure()
Cookie
true
if the browser is sending cookies only over a secure protocol, or
false
if the browser can send cookies using any protocol.public boolean httpOnly()
Copyright © 2016. All rights reserved.