public abstract class AbstractCookieConfiguration
extends java.lang.Object
implements io.micronaut.http.cookie.CookieConfiguration
CookieConfiguration
implementations.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cookieDomain |
protected java.lang.Boolean |
cookieSecure |
Constructor and Description |
---|
AbstractCookieConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getCookieDomain() |
java.util.Optional<java.lang.Boolean> |
isCookieSecure() |
void |
setCookieDomain(java.lang.String cookieDomain)
Sets the domain name of this Cookie.
|
void |
setCookieSecure(java.lang.Boolean cookieSecure)
Sets whether the cookie is secured.
|
protected java.lang.String cookieDomain
protected java.lang.Boolean cookieSecure
public java.util.Optional<java.lang.String> getCookieDomain()
getCookieDomain
in interface io.micronaut.http.cookie.CookieConfiguration
public void setCookieDomain(@Nullable java.lang.String cookieDomain)
cookieDomain
- the domain name of this Cookiepublic java.util.Optional<java.lang.Boolean> isCookieSecure()
isCookieSecure
in interface io.micronaut.http.cookie.CookieConfiguration
public void setCookieSecure(java.lang.Boolean cookieSecure)
cookieSecure
- True if the cookie is secure