Class HttpHeaderTenantResolverConfigurationProperties

java.lang.Object
io.micronaut.multitenancy.tenantresolver.HttpHeaderTenantResolverConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, HttpHeaderTenantResolverConfiguration

@ConfigurationProperties("micronaut.multitenancy.tenantresolver.httpheader") public class HttpHeaderTenantResolverConfigurationProperties extends Object implements HttpHeaderTenantResolverConfiguration
ConfigurationProperties implementation of HttpHeaderTenantResolverConfiguration.
Since:
1.0.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • HttpHeaderTenantResolverConfigurationProperties

      public HttpHeaderTenantResolverConfigurationProperties()
  • Method Details

    • isEnabled

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

      public void setEnabled(boolean enabled)
      Enables HttpHeaderTenantResolver. Default value (false).
      Parameters:
      enabled - True or False
    • setHeaderName

      public void setHeaderName(String headerName)
      Http Header name which should be used to resolve the tenant id from. Default value ("tenantId").
      Parameters:
      headerName - Http Header name.
    • getHeaderName

      public String getHeaderName()
      Description copied from interface: HttpHeaderTenantResolverConfiguration
      Http Header name which should be used to resolve the tenant id from.
      Specified by:
      getHeaderName in interface HttpHeaderTenantResolverConfiguration
      Returns:
      a String containing the Http Header name.