- All Superinterfaces:
Cookie
- All Known Subinterfaces:
SetCookieParameter
Represents a HTTP set-cookie as defined by RFC 6265 Section 4.1
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A configurator used to configure a set-cookie. -
Method Summary
Modifier and TypeMethodDescriptionReturns cookie's domain attribute.Returns cookie's expires attribute.Returns cookie's max age attribute.getPath()
Returns cookie's path attribute.Returns cookie's same site attribute.Returns cookie's http only flag attribute.isSecure()
Returns cookie's secure flag attribute.
-
Method Details
-
getExpires
ZonedDateTime getExpires()Returns cookie's expires attribute.
- Returns:
- the expires or null
-
getMaxAge
Integer getMaxAge()Returns cookie's max age attribute.
- Returns:
- the max age or null
-
getDomain
String getDomain()Returns cookie's domain attribute.
- Returns:
- the domain or null
-
getPath
String getPath()Returns cookie's path attribute.
- Returns:
- the path or null
-
isSecure
Boolean isSecure()Returns cookie's secure flag attribute.
- Returns:
- the secure flag or null
-
isHttpOnly
Boolean isHttpOnly()Returns cookie's http only flag attribute.
- Returns:
- the http only flag or null
-
getSameSite
Headers.SetCookie.SameSitePolicy getSameSite()Returns cookie's same site attribute.
- Returns:
- the same site attribute or null
-