| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final boolean | |
| private final Cookie | |
| private CookieSameSite |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | CookieImpl(Cookie
the underlying cookie object nettyCookie)Internal constructor, only used by the CookieJar. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public long | |
| public String | |
| public String | |
| public CookieSameSite | |
| public String | |
| public boolean | |
| public boolean | isFromUserAgent()
Implements io. Has this Cookie been sent from the User Agent (the browser)? |
| public boolean | |
| public boolean | |
| public void | setChanged(boolean
true if changed changed)Implements io. Set the cookie as being changed. |
| public Cookie | |
| public Cookie | setHttpOnly(final boolean
True if the cookie is HTTP only, otherwise false. httpOnly)Implements io. Determines if this cookie is HTTP only. |
| public Cookie | setMaxAge(final long
The maximum age of this cookie in seconds maxAge)Implements io. Sets the maximum age of this cookie in seconds. |
| public Cookie | |
| public Cookie | setSameSite(final CookieSameSite
The policy should be one of sameSite)CookieSameSite.Implements io. Sets the same site of this cookie. |
| public Cookie | setSecure(final boolean
True if this cookie is to be secure, otherwise false secure)Implements io. Sets the security getStatus of this cookie |
| public Cookie | setValue(final String
The value to set value)Implements io. Sets the value of this cookie |
| changed | back to summary |
|---|---|
| private boolean changed | |
| fromUserAgent | back to summary |
|---|---|
| private final boolean fromUserAgent | |
| nettyCookie | back to summary |
|---|---|
| private final Cookie nettyCookie | |
| sameSite | back to summary |
|---|---|
| private CookieSameSite sameSite | |
| CookieImpl | back to summary |
|---|---|
| public CookieImpl(String name, String value) | |
| CookieImpl | back to summary |
|---|---|
| pack-priv CookieImpl(Cookie nettyCookie) Internal constructor, only used by the CookieJar.
| |
| encode | back to summary |
|---|---|
| public String encode() Implements io. Doc from io. Encode the cookie to a string. This is what is used in the Set-Cookie header | |
| getDomain | back to summary |
|---|---|
| public String getDomain() Implements io.
| |
| getMaxAge | back to summary |
|---|---|
| public long getMaxAge() Implements io.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements io.
| |
| getPath | back to summary |
|---|---|
| public String getPath() Implements io.
| |
| getSameSite | back to summary |
|---|---|
| public CookieSameSite getSameSite() Implements io.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements io.
| |
| isChanged | back to summary |
|---|---|
| public boolean isChanged() Implements io. Doc from io. Has the cookie been changed? Changed cookie jar will be saved out in the response and sent to the browser.
| |
| isFromUserAgent | back to summary |
|---|---|
| public boolean isFromUserAgent() Implements io. Doc from io. Has this Cookie been sent from the User Agent (the browser)? or was created during the executing on the request.
| |
| isHttpOnly | back to summary |
|---|---|
| public boolean isHttpOnly() Implements io.
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Implements io.
| |
| setChanged | back to summary |
|---|---|
| public void setChanged(boolean changed) Implements io. Doc from io. Set the cookie as being changed. Changed will be true for a cookie just created, false by default if just read from the request
| |
| setDomain | back to summary |
|---|---|
public Cookie setDomain(final String domain)
| |
| setHttpOnly | back to summary |
|---|---|
| public Cookie setHttpOnly(final boolean httpOnly) Implements io. Doc from io. Determines if this cookie is HTTP only. If set to true, this cookie cannot be accessed by a client side script. However, this works only if the browser supports it. For for information, please look here.
| |
| setMaxAge | back to summary |
|---|---|
| public Cookie setMaxAge(final long maxAge) Implements io. Doc from io. Sets the maximum age of this cookie in seconds.
If an age of
| |
| setPath | back to summary |
|---|---|
public Cookie setPath(final String path)
| |
| setSameSite | back to summary |
|---|---|
| public Cookie setSameSite(final CookieSameSite sameSite) Implements io. Doc from io. Sets the same site of this cookie.
| |
| setSecure | back to summary |
|---|---|
| public Cookie setSecure(final boolean secure) Implements io. Doc from io. Sets the security getStatus of this cookie | |
| setValue | back to summary |
|---|---|
| public Cookie setValue(final String value) Implements io. Doc from io. Sets the value of this cookie | |