Class HttpHeaderTenantWriterConfigurationProperties

java.lang.Object
io.micronaut.multitenancy.writer.HttpHeaderTenantWriterConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, HttpHeaderTenantWriterConfiguration

@ConfigurationProperties("micronaut.multitenancy.tenantwriter.httpheader") public class HttpHeaderTenantWriterConfigurationProperties extends Object implements HttpHeaderTenantWriterConfiguration
Tenant Writer Configuration Properties.
Since:
1.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • HttpHeaderTenantWriterConfigurationProperties

      public HttpHeaderTenantWriterConfigurationProperties()
  • Method Details

    • isEnabled

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

      public void setEnabled(boolean enabled)
      Enables HttpHeaderTenantWriter. Default value (false).
      Parameters:
      enabled - enabled flag
    • setHeaderName

      public void setHeaderName(String headerName)
      Http Header name. Default value ("tenantId").
      Parameters:
      headerName - HTTP header name
    • getHeaderName

      public String getHeaderName()
      Specified by:
      getHeaderName in interface HttpHeaderTenantWriterConfiguration
      Returns:
      an HTTP Header name. e.g. Authorization