- All Superinterfaces:
Header
- Enclosing class:
Headers
Set-cookie HTTP header as defined by RFC 6265 Section 4.1.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Defines a same site policy as defined by SameSite cookie. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the cookie max age.Returns the cookie expires value.Returns the cookie max age.getName()
Returns the cookie name.getPath()
Returns the cookie path.Returns cookie's same site attribute.getValue()
Returns the cookie value.Returns the cookie HTTP only flag.isSecure()
Returns the cookie secure flag.Methods inherited from interface io.inverno.mod.http.base.header.Header
getHeaderName, getHeaderValue
-
Field Details
-
EXPIRES
Expires parameter- See Also:
-
MAX_AGE
Max-Age parameter- See Also:
-
DOMAIN
Domain parameter- See Also:
-
PATH
Path parameter- See Also:
-
SECURE
Secure parameter- See Also:
-
HTTPONLY
HttpOnly parameter- See Also:
-
SAME_SITE
HttpOnly parameter- See Also:
-
-
Method Details
-
getName
String getName()Returns the cookie name.
- Returns:
- the cookie name or null
-
getValue
String getValue()Returns the cookie value.
- Returns:
- the cookie value or null
-
getExpires
ZonedDateTime getExpires()Returns the cookie expires value.
- Returns:
- the cookie expires value or null
-
getMaxAge
Integer getMaxAge()Returns the cookie max age.
- Returns:
- the cookie max age or null
-
getDomain
String getDomain()Returns the cookie max age.
- Returns:
- the cookie max age or null
-
getPath
String getPath()Returns the cookie path.
- Returns:
- the cookie path or null
-
isSecure
Boolean isSecure()Returns the cookie secure flag.
- Returns:
- the cookie secure flag or null
-
isHttpOnly
Boolean isHttpOnly()Returns the cookie HTTP only flag.
- Returns:
- the cookie HTTP only flag or null
-
getSameSite
Headers.SetCookie.SameSitePolicy getSameSite()Returns cookie's same site attribute.
- Returns:
- the same site attribute or null
-