Class CookieTenantResolverConfigurationProperties
- java.lang.Object
-
- io.micronaut.multitenancy.tenantresolver.CookieTenantResolverConfigurationProperties
-
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable,CookieTenantResolverConfiguration
@ConfigurationProperties("micronaut.multitenancy.tenantresolver.cookie") public class CookieTenantResolverConfigurationProperties extends java.lang.Object implements CookieTenantResolverConfigurationConfigurationPropertiesimplementation ofCookieTenantResolverConfiguration.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_ENABLEThe default enable value.static java.lang.StringPREFIXConfiguration Properties Prefix.-
Fields inherited from interface io.micronaut.multitenancy.tenantresolver.CookieTenantResolverConfiguration
DEFAULT_COOKIENAME
-
-
Constructor Summary
Constructors Constructor Description CookieTenantResolverConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCookiename()Cookie name which should be used to resolve the tenant id from.booleanisEnabled()voidsetCookiename(java.lang.String cookiename)Cookie name which should be used to resolve the tenant id from.voidsetEnabled(boolean enabled)Whether to enableCookieTenantResolver.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
Configuration Properties Prefix.- See Also:
- Constant Field Values
-
DEFAULT_ENABLE
public static final boolean DEFAULT_ENABLE
The default enable value.- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled)
Whether to enableCookieTenantResolver. Default value (false).- Parameters:
enabled- True or False
-
setCookiename
public void setCookiename(java.lang.String cookiename)
Cookie name which should be used to resolve the tenant id from. Default value ("tenantId").- Parameters:
cookiename- Http Header name.
-
getCookiename
public java.lang.String getCookiename()
Description copied from interface:CookieTenantResolverConfigurationCookie name which should be used to resolve the tenant id from.- Specified by:
getCookienamein interfaceCookieTenantResolverConfiguration- Returns:
- a String with the Cookie name.
-
-