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