@ConfigurationProperties(value="micronaut.multitenancy.tenantwriter.cookie") public class CookieTenantWriterConfigurationProperties extends java.lang.Object
ConfigurationProperties
implementation of CookieTenantWriterConfiguration
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_COOKIENAME
The default cookie name.
|
static java.lang.String |
DEFAULT_COOKIEPATH
Default Cookie Path.
|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static boolean |
DEFAULT_HTTPONLY
The default http only value.
|
static boolean |
DEFAULT_SECURE
The default secure value.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
CookieTenantWriterConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getCookieDomain()
Gets the domain name of this Cookie.
|
java.util.Optional<java.time.temporal.TemporalAmount> |
getCookieMaxAge() |
java.lang.String |
getCookiename() |
java.lang.String |
getCookieName() |
java.util.Optional<java.lang.String> |
getCookiePath()
The path of the cookie.
|
java.util.Optional<SameSite> |
getCookieSameSite() |
java.util.Optional<java.lang.Boolean> |
isCookieHttpOnly()
Checks to see if this
Cookie can only be accessed via HTTP. |
java.util.Optional<java.lang.Boolean> |
isCookieSecure() |
boolean |
isEnabled() |
void |
setCookieDomain(java.lang.String cookieDomain)
Sets the domain name of this Cookie.
|
void |
setCookieHttpOnly(boolean cookieHttpOnly)
Whether the Cookie can only be accessed via HTTP.
|
void |
setCookieMaxAge(java.time.temporal.TemporalAmount cookieMaxAge)
Sets the maximum age of the cookie.
|
void |
setCookiename(java.lang.String cookiename)
Cookie Name.
|
void |
setCookiePath(java.lang.String cookiePath)
Sets the path of the cookie.
|
void |
setCookieSameSite(SameSite sameSite)
Determines if this this
Cookie can be sent along cross-site requests. |
void |
setCookieSecure(boolean cookieSecure)
Sets whether the cookie is secured.
|
void |
setEnabled(boolean enabled)
Enables
CookieTenantWriter . |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_SECURE
public static final boolean DEFAULT_HTTPONLY
public static final java.lang.String DEFAULT_COOKIENAME
public static final java.lang.String DEFAULT_COOKIEPATH
public CookieTenantWriterConfigurationProperties()
public boolean isEnabled()
public void setEnabled(boolean enabled)
CookieTenantWriter
. Default value (false).enabled
- enabled flagpublic void setCookiename(java.lang.String cookiename)
cookiename
- Cookie name@NonNull public java.lang.String getCookiename()
@NonNull public java.lang.String getCookieName()
public java.util.Optional<java.lang.String> getCookieDomain()
CookieConfiguration
@Nullable public java.util.Optional<java.lang.String> getCookiePath()
CookieConfiguration
public java.util.Optional<java.lang.Boolean> isCookieHttpOnly()
CookieConfiguration
Cookie
can only be accessed via HTTP.public java.util.Optional<java.lang.Boolean> isCookieSecure()
public java.util.Optional<java.time.temporal.TemporalAmount> getCookieMaxAge()
public void setCookieDomain(@Nullable java.lang.String cookieDomain)
cookieDomain
- the domain name of this Cookiepublic void setCookiePath(@Nullable java.lang.String cookiePath)
cookiePath
- The path of the cookie.public void setCookieHttpOnly(boolean cookieHttpOnly)
cookieHttpOnly
- Whether the Cookie can only be accessed via HTTP.public void setCookieSecure(boolean cookieSecure)
cookieSecure
- True if the cookie is securepublic void setCookieMaxAge(java.time.temporal.TemporalAmount cookieMaxAge)
cookieMaxAge
- The maximum age of the cookiepublic java.util.Optional<SameSite> getCookieSameSite()