Constructor and Description |
---|
Cookie() |
Modifier and Type | Method and Description |
---|---|
String |
getComment()
Return the comment for the session cookie.
|
String |
getDomain()
Return the domain for the session cookie.
|
Boolean |
getHttpOnly()
Return whether to use "HttpOnly" cookies for session cookies.
|
Duration |
getMaxAge()
Return the maximum age of the session cookie.
|
String |
getName()
Return the session cookie name.
|
String |
getPath()
Return the path of the session cookie.
|
Boolean |
getSecure()
Return whether to always mark the session cookie as secure.
|
void |
setComment(String comment) |
void |
setDomain(String domain) |
void |
setHttpOnly(Boolean httpOnly) |
void |
setMaxAge(Duration maxAge) |
void |
setName(String name) |
void |
setPath(String path) |
void |
setSecure(Boolean secure) |
public String getName()
public void setName(String name)
public String getDomain()
public void setDomain(String domain)
public String getPath()
public void setPath(String path)
public String getComment()
public void setComment(String comment)
public Boolean getHttpOnly()
true
to use "HttpOnly" cookies for session cookies.public void setHttpOnly(Boolean httpOnly)
public Boolean getSecure()
true
to mark the session cookie as secure even if the request
that initiated the corresponding session is using plain HTTPpublic void setSecure(Boolean secure)
public Duration getMaxAge()
public void setMaxAge(Duration maxAge)