| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public String | |
| public Date | |
| public default Instant | |
| public String | |
| public Date | getExpiryDate()
Deprecated
Use {
Returns the expiration getExpiryInstant()}
Date of the cookie, or null
if none exists.
|
| public default Instant | |
| public String | |
| public String | |
| public String | |
| public boolean | Returns: true if the cookie has expired.Current time date)
Deprecated
Use {
Returns true if this cookie has expired.
isExpired(Instant)}
|
| public default boolean | |
| public default boolean | Returns: true if this Cookie has been marked ashttpOnly,
false otherwiseChecks whether this Cookie has been marked as |
| public boolean | Returns: false if the cookie should be discarded at the end
of the "session"; true otherwiseReturns |
| public boolean | Returns: true if this cookie should only be sent
over secure connections, false otherwise.Indicates whether this cookie requires a secure connection. |
| DOMAIN_ATTR | back to summary |
|---|---|
| public static final String DOMAIN_ATTR | |
| EXPIRES_ATTR | back to summary |
|---|---|
| public static final String EXPIRES_ATTR | |
| HTTP_ONLY_ATTR | back to summary |
|---|---|
| public static final String HTTP_ONLY_ATTR | |
| MAX_AGE_ATTR | back to summary |
|---|---|
| public static final String MAX_AGE_ATTR | |
| PATH_ATTR | back to summary |
|---|---|
| public static final String PATH_ATTR | |
| SECURE_ATTR | back to summary |
|---|---|
| public static final String SECURE_ATTR | |
| containsAttribute | back to summary |
|---|---|
public boolean containsAttribute(String name)
| |
| getAttribute | back to summary |
|---|---|
public String getAttribute(String name)
| |
| getCreationDate | back to summary |
|---|---|
| public Date getCreationDate()
Deprecated Returns creation time of the cookie.
| |
| getCreationInstant | back to summary |
|---|---|
| public default Instant getCreationInstant() Returns creation time of the cookie. | |
| getDomain | back to summary |
|---|---|
| public String getDomain() Returns domain attribute of the cookie. The value of the Domain attribute specifies the domain for which the cookie is valid.
| |
| getExpiryDate | back to summary |
|---|---|
| public Date getExpiryDate()
Deprecated Use { Returns the expiration 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. | |
| getExpiryInstant | back to summary |
|---|---|
| public default Instant getExpiryInstant() Returns the expiration 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.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name.
| |
| getPath | back to summary |
|---|---|
| public String getPath() Returns the path attribute of the cookie. The value of the Path attribute specifies the subset of URLs on the origin server to which this cookie applies.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Returns the value.
| |
| isExpired | back to summary |
|---|---|
| public boolean isExpired(final Date date)
Deprecated Use { Returns true if this cookie has expired.
| |
| isExpired | back to summary |
|---|---|
| public default boolean isExpired(final Instant date) Returns true if this cookie has expired.
| |
| isHttpOnly | back to summary |
|---|---|
| public default boolean isHttpOnly() Checks whether this Cookie has been marked as The default implementation returns
| |
| isPersistent | back to summary |
|---|---|
| public boolean isPersistent() Returns
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Indicates whether this cookie requires a secure connection.
| |