Set-Cookie response header sent by the
origin server to the HTTP agent in order to maintain a conversational state.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | setExpiryDate(Date
the expiryDate)Date after which this cookie is no longer valid.
Deprecated
Use {
Sets expiration date.
setExpiryDate(Instant)}
|
| public default void | setExpiryDate(Instant
the expiryDate)Instant after which this cookie is no longer valid.Sets expiration date. |
| public default void | setHttpOnly(final boolean
true if this cookie is to be marked as
httpOnly)httpOnly, false otherwiseMarks or unmarks this Cookie as |
| public void | |
| public void | |
| public void |
| setDomain | back to summary |
|---|---|
| public void setDomain(String domain) Sets the domain attribute.
| |
| setExpiryDate | back to summary |
|---|---|
| public void setExpiryDate(Date expiryDate)
Deprecated Use { Sets expiration date. Note the object returned by this method is considered immutable. Changing it (e.g. using setTime()) could result in undefined behaviour. Do so at your peril.
| |
| setExpiryDate | back to summary |
|---|---|
| public default void setExpiryDate(Instant expiryDate) Sets expiration date. Note the object returned by this method is considered immutable. Changing it (e.g. using setTime()) could result in undefined behaviour. Do so at your peril.
| |
| setHttpOnly | back to summary |
|---|---|
| public default void setHttpOnly(final boolean httpOnly) Marks or unmarks this Cookie as
| |
| setPath | back to summary |
|---|---|
| public void setPath(String path) Sets the path attribute.
| |
| setSecure | back to summary |
|---|---|
| public void setSecure(boolean secure) Sets the secure attribute of the cookie.
When
| |
| setValue | back to summary |
|---|---|
| public void setValue(String value) | |