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 Details

  • Constructor Details

    • CookieTenantResolverConfigurationProperties

      public CookieTenantResolverConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      Whether to enable CookieTenantResolver. Default value (false).
      Parameters:
      enabled - True or False
    • setCookiename

      public void setCookiename(String cookiename)
      Cookie name which should be used to resolve the tenant id from. Default value ("tenantId").
      Parameters:
      cookiename - Http Header name.
    • getCookiename

      public String getCookiename()
      Description copied from interface: CookieTenantResolverConfiguration
      Cookie name which should be used to resolve the tenant id from.
      Specified by:
      getCookiename in interface CookieTenantResolverConfiguration
      Returns:
      a String with the Cookie name.