@ConfigurationProperties(value="micronaut.multitenancy.tenantresolver.httpheader") public class HttpHeaderTenantResolverConfigurationProperties extends java.lang.Object implements HttpHeaderTenantResolverConfiguration
ConfigurationProperties
implementation of HttpHeaderTenantResolverConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLE
The default enable value.
|
static java.lang.String |
PREFIX |
DEFAULT_HEADER_NAME
Constructor and Description |
---|
HttpHeaderTenantResolverConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHeaderName()
Http Header name which should be used to resolve the tenant id from.
|
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Enables
HttpHeaderTenantResolver . |
void |
setHeaderName(java.lang.String headerName)
Http Header name which should be used to resolve the tenant id from.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLE
public HttpHeaderTenantResolverConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
HttpHeaderTenantResolver
. Default value (false).enabled
- True or Falsepublic void setHeaderName(java.lang.String headerName)
headerName
- Http Header name.public java.lang.String getHeaderName()
HttpHeaderTenantResolverConfiguration
getHeaderName
in interface HttpHeaderTenantResolverConfiguration