@ConfigurationProperties(value="micronaut.multitenancy.tenantwriter.cookie") public class CookieTenantWriterConfigurationProperties extends Object
ConfigurationProperties
implementation of CookieTenantWriterConfiguration
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_COOKIENAME
The default cookie name.
|
static 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 String |
PREFIX |
Constructor and Description |
---|
CookieTenantWriterConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getCookieDomain()
Gets the domain name of this Cookie.
|
Optional<TemporalAmount> |
getCookieMaxAge() |
String |
getCookiename() |
String |
getCookieName() |
Optional<String> |
getCookiePath()
The path of the cookie.
|
Optional<Boolean> |
isCookieHttpOnly()
Checks to see if this
Cookie can only be accessed via HTTP. |
Optional<Boolean> |
isCookieSecure() |
boolean |
isEnabled() |
void |
setCookieDomain(String cookieDomain)
Sets the domain name of this Cookie.
|
void |
setCookieHttpOnly(boolean cookieHttpOnly)
Whether the Cookie can only be accessed via HTTP.
|
void |
setCookieMaxAge(TemporalAmount cookieMaxAge)
Sets the maximum age of the cookie.
|
void |
setCookiename(String cookiename)
Cookie Name.
|
void |
setCookiePath(String cookiePath)
Sets the path of the cookie.
|
void |
setCookieSecure(boolean cookieSecure)
Sets whether the cookie is secured.
|
void |
setEnabled(boolean enabled)
Enables
CookieTenantWriter . |
public static final String PREFIX
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_SECURE
public static final boolean DEFAULT_HTTPONLY
public static final String DEFAULT_COOKIENAME
public static final String DEFAULT_COOKIEPATH
public CookieTenantWriterConfigurationProperties()
public boolean isEnabled()
public void setEnabled(boolean enabled)
CookieTenantWriter
. Default value (false).enabled
- enabled flagpublic void setCookiename(String cookiename)
cookiename
- Cookie name@Nonnull public String getCookiename()
public Optional<String> getCookieDomain()
CookieConfiguration
@Nullable public Optional<String> getCookiePath()
CookieConfiguration
public Optional<Boolean> isCookieHttpOnly()
CookieConfiguration
Cookie
can only be accessed via HTTP.public Optional<TemporalAmount> getCookieMaxAge()
public void setCookieDomain(@Nullable String cookieDomain)
cookieDomain
- the domain name of this Cookiepublic void setCookiePath(@Nullable 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(TemporalAmount cookieMaxAge)
cookieMaxAge
- The maximum age of the cookie