Package io.micronaut.http.cookie
Interface CookieConfiguration
public interface CookieConfiguration
An interface representing the configuration of a Cookie.
- Since:
- 1.1.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionGets the domain name of this Cookie.The path of the cookie.Checks to see if thisCookie
can only be accessed via HTTP.
-
Method Details
-
getCookieName
- Returns:
- The name of the cookie
-
getCookieDomain
Gets the domain name of this Cookie.- Returns:
- the domain name of this Cookie
-
getCookiePath
The path of the cookie. The cookie is visible to all paths below the request path on the server.- Returns:
- The cookie path
-
isCookieHttpOnly
Checks to see if thisCookie
can only be accessed via HTTP.- Returns:
- True if the cookie is HTTP only
-
isCookieSecure
- Returns:
- True if the cookie is secure
-
getCookieMaxAge
Optional<TemporalAmount> getCookieMaxAge()- Returns:
- The max age to use for the cookie
-
getCookieSameSite
- Returns:
- return the SameSite to use for the cookie.
-