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 Object
implements CookieTenantResolverConfiguration
ConfigurationProperties implementation of CookieTenantResolverConfiguration.- Since:
- 1.0.0
- Author:
- Sergio del Amo
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final booleanThe default enable value.static final StringConfiguration Properties Prefix.Fields inherited from interface io.micronaut.multitenancy.tenantresolver.CookieTenantResolverConfigurationDEFAULT_COOKIENAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCookie name which should be used to resolve the tenant id from.booleanvoidsetCookiename(String cookiename) Cookie name which should be used to resolve the tenant id from.voidsetEnabled(boolean enabled) Whether to enableCookieTenantResolver.
- 
Field Details- 
PREFIXConfiguration Properties Prefix.- See Also:
 
- 
DEFAULT_ENABLEpublic static final boolean DEFAULT_ENABLEThe default enable value.- See Also:
 
 
- 
- 
Constructor Details- 
CookieTenantResolverConfigurationPropertiespublic CookieTenantResolverConfigurationProperties()
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()- Specified by:
- isEnabledin interface- io.micronaut.core.util.Toggleable
 
- 
setEnabledpublic void setEnabled(boolean enabled) Whether to enableCookieTenantResolver. Default value (false).- Parameters:
- enabled- True or False
 
- 
setCookienameCookie name which should be used to resolve the tenant id from. Default value ("tenantId").- Parameters:
- cookiename- Http Header name.
 
- 
getCookienameDescription copied from interface:CookieTenantResolverConfigurationCookie name which should be used to resolve the tenant id from.- Specified by:
- getCookienamein interface- CookieTenantResolverConfiguration
- Returns:
- a String with the Cookie name.
 
 
-