@ConfigurationProperties(value="micronaut.multitenancy.tenantresolver.cookie") public class CookieTenantResolverConfigurationProperties extends java.lang.Object implements CookieTenantResolverConfiguration
ConfigurationProperties
implementation of CookieTenantResolverConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLE
The default enable value.
|
static java.lang.String |
PREFIX |
DEFAULT_COOKIENAME
Constructor and Description |
---|
CookieTenantResolverConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCookiename()
Cookie name which should be used to resolve the tenant id from.
|
boolean |
isEnabled() |
void |
setCookiename(java.lang.String cookiename)
Cookie name which should be used to resolve the tenant id from.
|
void |
setEnabled(boolean enabled)
Whether to enable
CookieTenantResolver . |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLE
public CookieTenantResolverConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
CookieTenantResolver
. Default value (false).enabled
- True or Falsepublic void setCookiename(java.lang.String cookiename)
cookiename
- Http Header name.public java.lang.String getCookiename()
CookieTenantResolverConfiguration
getCookiename
in interface CookieTenantResolverConfiguration