public static class Session.Cookie
extends java.lang.Object
Constructor and Description |
---|
Cookie() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment()
Return the comment for the session cookie.
|
java.lang.String |
getDomain()
Return the domain for the session cookie.
|
java.lang.Boolean |
getHttpOnly()
Return whether to use "HttpOnly" cookies for session cookies.
|
java.time.Duration |
getMaxAge()
Return the maximum age of the session cookie.
|
java.lang.String |
getName()
Return the session cookie name.
|
java.lang.String |
getPath()
Return the path of the session cookie.
|
java.lang.Boolean |
getSecure()
Return whether to always mark the session cookie as secure.
|
void |
setComment(java.lang.String comment) |
void |
setDomain(java.lang.String domain) |
void |
setHttpOnly(java.lang.Boolean httpOnly) |
void |
setMaxAge(java.time.Duration maxAge) |
void |
setName(java.lang.String name) |
void |
setPath(java.lang.String path) |
void |
setSecure(java.lang.Boolean secure) |
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDomain()
public void setDomain(java.lang.String domain)
public java.lang.String getPath()
public void setPath(java.lang.String path)
public java.lang.String getComment()
public void setComment(java.lang.String comment)
public java.lang.Boolean getHttpOnly()
true
to use "HttpOnly" cookies for session cookies.public void setHttpOnly(java.lang.Boolean httpOnly)
public java.lang.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(java.lang.Boolean secure)
public java.time.Duration getMaxAge()
public void setMaxAge(java.time.Duration maxAge)